Tag: check if object is array javascript