javascript check for object type in array code example Example: javascript typeof array Array.isArray(arr)