how to check if obj is an aray in nodejs code example Example: if object is array javascript Array.isArray(object);