Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 10c66c74e7358910bc1c6a97762a9d0c2a97a818 1 parent 46aff65
Jason Smith jhs authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib.js
5 lib.js
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.