Javascript Get First Element Of Array