Check If Variable Is An Array In Javascript