Comparing version 0.0.5 to 0.0.6
@@ -22,1 +22,8 @@ module.exports.getCharCounts = function(arr) { | ||
}; | ||
module.exports.groupByKey = function(arr, key) { | ||
return arr.reduce((r, a) => { | ||
r[a[key]] = [...(r[a[key]] || []), a]; | ||
return r; | ||
}, {}); | ||
}; |
{ | ||
"name": "pedash", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A lodash-like javascript helper -- for dummies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1382
25