Comparing version
module.exports = function (object, cb, context) { | ||
var newObject = {} | ||
for (key in object) { | ||
if (!object.hasOwnProperty(key)) continue; | ||
newObject[key] = cb.call(context, object[key], key, object); | ||
if (!object.hasOwnProperty(key)) { | ||
continue; | ||
} | ||
newObject[key] = cb.call(context, object[key], key, object); | ||
} | ||
return newObject; | ||
} | ||
} |
{ | ||
"name": "object-map", | ||
"version": "0.0.0", | ||
"description": "Provides map function over Objects which return an Object. ", | ||
"version": "1.0.0", | ||
"description": "Map a function over some Object's values to produce a new Object.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "node test.js" | ||
}, | ||
@@ -14,4 +14,12 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/xixixao/object-map", | ||
"bugs": { | ||
"url": "https://github.com/xixixao/object-map/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/xixixao/object-map.git" | ||
}, | ||
"author": "xixixao", | ||
"license": "BSD-2-Clause" | ||
"license": "MIT" | ||
} |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
2893
400.52%4
100%46
557.14%1
-50%0
-100%0
-100%38
Infinity%0
-100%0
-100%