You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

object-map

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-map - npm Package Compare versions

Comparing version

to
1.0.0

README.md

8

index.js
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"
}