how to get first object fro object array code example Example: javascript get first element of array alert($(ary).first());