Typescript Get First Element Of Nullable Array Methods In Js In Mdn