Is there any way to efficiently check if the variable is Object or Array, in NodeJS & V8? I’m writing a Model for MongoDB and NodeJS, and to traverse the object tree I need to know if the object is simple (Number, String, …) or composite (Hash, Array). It seems that V8 has fast built-in Array.isArray, but how to check