I'm writing Node add-on and using the nan library as much as I can for writing the code. It's recommended by the Node project because it lets you write code that's compatible with different version of v8 and node.
If you look at the V8 documentation, you'll see that
v8::Array is a subset of
v8::Object. Given this, you can create an array with
You can reference the
v8::Array documentation for more details.