type of javascript array code example Example 1: javascript typeof array Array.isArray(arr) Example 2: javascript typeof array Array.isArray(obj)