collectionize
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -29,5 +29,7 @@ (function () { | ||
if (_.isPlainObject(obj)) { | ||
return eachObject(obj, cb); | ||
} else if (_.isArray(obj) || _.isString(obj)) { | ||
return eachArray(obj, cb); | ||
eachObject(obj, cb); | ||
} else if (_.isArray(obj)) { | ||
obj.forEach(cb); | ||
} else if (_.isString(obj)) { | ||
eachCharacter(obj, cb); | ||
} | ||
@@ -37,3 +39,3 @@ } | ||
function eachArray(obj, cb) { | ||
function eachCharacter(obj, cb) { | ||
var i = 0, max = obj.length; | ||
@@ -40,0 +42,0 @@ for (; i < max; i++) { |
{ | ||
"name": "collectionize", | ||
"description": "A lightweight JS model/collection library.", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"repository": "https://github.com/andrewchilds/collectionize.git", | ||
@@ -6,0 +6,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231
20803
8