which method of array is used to check whether there is value or not in js code example Example: in javascript check is is an array or not Array.isArray(yourItem)