Permalink
Browse files

NB about casting [] to node's array

  • Loading branch information...
1 parent 4ed754e commit ee5d565f99a05904d2f9f36c8fdd857030712153 @b1rdex b1rdex committed Mar 11, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -92,6 +92,10 @@ It is not possible to replace the default constructors of arrays and objects
Therefore you have to use `Array()` and `Object()` constructors exported by `require('nwglobal')` in order to create arrays and objects in Node's context.
+NB: you can cast browser's `[]` array to node.js array with `require('nwglobal').Array.prototype.slice.call(browserContextArray)`.
+
+NB2: With this you can transform jquery set.
+
# License
MIT License, see the LICENSE file.

0 comments on commit ee5d565

Please sign in to comment.