Permalink
Browse files

Array.isArray in the lib so it can be re-implemented later

  • Loading branch information...
1 parent 46aff65 commit 10c66c74e7358910bc1c6a97762a9d0c2a97a818 @jhs jhs committed Oct 26, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib.js
View
5 lib.js
@@ -28,6 +28,7 @@ defaultable(module,
module.exports = { "getLogger" : getLogger
, "get_creds" : get_creds
+ , "isArray" : isArray
, "join" : join_and_fix_slashes
, "encode_id" : encode_doc_id
, "isRegExp" : isRegExp
@@ -126,4 +127,8 @@ function check_expr(source_code, type) {
assert_formals('keys', 'values', 'rereduce');
}
+function isArray(obj) {
+ return Array.isArray(obj);
+}
+
}) // defaultable

0 comments on commit 10c66c7

Please sign in to comment.