typeof array in node js code example Example 1: javascript typeof array Array.isArray(arr) Example 2: in javascript check is is an array or not Array.isArray(yourItem)