{"_id":"object-foreach","_rev":"1954105","name":"object-foreach","description":"Executes a function on each of an objects own enumerable properties.","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"time":{"modified":"2021-12-13T12:52:03.000Z","created":"2013-09-17T04:24:43.389Z","0.1.2":"2013-09-17T18:59:31.656Z","0.1.1":"2013-09-17T04:26:40.383Z","0.1.0":"2013-09-17T04:24:43.389Z"},"users":{},"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"repository":{"type":"git","url":"git://github.com/matthewkastor/object-foreach.git"},"versions":{"0.1.2":{"name":"object-foreach","version":"0.1.2","description":"Executes a function on each of an objects own enumerable properties.","main":"./src/object-foreach.js","directories":{"lib":"src"},"devDependencies":{"browserify":">=2.29.1","jasmine-node":">=1.11.0"},"scripts":{"test":"jasmine-node specs/","buildBrowserModule":"node dev/browserify.js"},"homepage":"https://github.com/matthewkastor/object-foreach/","bugs":"https://github.com/matthewkastor/object-foreach/issues","repository":{"type":"git","url":"git://github.com/matthewkastor/object-foreach.git"},"keywords":["object-foreach"],"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"licenses":[{"type":"gpl-3.0","url":"http://www.gnu.org/licenses/gpl-3.0-standalone.html"}],"readmeFilename":"Readme.md","_id":"object-foreach@0.1.2","dist":{"shasum":"d7421c5b40e3b6a3ef57ac624368d21d8f8d2dec","size":50316,"noattachment":false,"key":"/object-foreach/-/object-foreach-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/object-foreach/download/object-foreach-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"kastor","email":"matthewkastor@gmail.com"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"publish_time":1379444371656,"_cnpm_publish_time":1379444371656,"_hasShrinkwrap":false},"0.1.1":{"name":"object-foreach","version":"0.1.1","description":"Executes a function on each of an objects own enumerable properties.","main":"./src/object-foreach.js","directories":{"lib":"src"},"devDependencies":{"browserify":">=2.29.1","jasmine-node":">=1.11.0"},"scripts":{"test":"jasmine-node specs/","buildBrowserModule":"node dev/browserify.js"},"homepage":"https://github.com/matthewkastor/object-foreach/","bugs":"https://github.com/matthewkastor/object-foreach/issues","repository":{"type":"git","url":"git://github.com/matthewkastor/object-foreach.git"},"keywords":["object-foreach"],"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"license":"gpl-3.0","readmeFilename":"Readme.md","_id":"object-foreach@0.1.1","dist":{"shasum":"d0eab1de9299428c40887a6fa1af8e10c3599937","size":26092,"noattachment":false,"key":"/object-foreach/-/object-foreach-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/object-foreach/download/object-foreach-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"kastor","email":"matthewkastor@gmail.com"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"publish_time":1379392000383,"_cnpm_publish_time":1379392000383,"_hasShrinkwrap":false},"0.1.0":{"name":"object-foreach","version":"0.1.0","description":"empty package","main":"./src/object-foreach.js","directories":{"lib":"src"},"devDependencies":{"browserify":">=2.29.1","jasmine-node":">=1.11.0"},"scripts":{"test":"jasmine-node specs/","buildBrowserModule":"node dev/browserify.js"},"homepage":"https://github.com/matthewkastor/object-foreach/","bugs":"https://github.com/matthewkastor/object-foreach/issues","repository":{"type":"git","url":"git://github.com/matthewkastor/object-foreach.git"},"keywords":["object-foreach"],"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"license":"gpl-3.0","readmeFilename":"Readme.md","_id":"object-foreach@0.1.0","dist":{"shasum":"f3c59f58f9285650348f30859146cf775eca8de1","size":26095,"noattachment":false,"key":"/object-foreach/-/object-foreach-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/object-foreach/download/object-foreach-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"kastor","email":"matthewkastor@gmail.com"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"publish_time":1379391883389,"_cnpm_publish_time":1379391883389,"_hasShrinkwrap":false}},"readme":"# object-foreach\r\n\r\nExecutes a function on each of an objects own enumerable properties. The\r\n callback function will receive three arguments: the value of the current\r\n property, the name of the property, and the object being processed. This is\r\n roughly equivalent to the signature for callbacks to\r\n Array.prototype.forEach.\r\n\r\n## Installation\r\n\r\n```\r\nnpm install object-foreach\r\n```\r\n\r\n## Usage\r\n\r\nIn node:\r\n\r\n```\r\nvar objectForeach = require('object-foreach');\r\nvar x = {\r\n            a : 'v',\r\n            b : 'v',\r\n            c : 'v',\r\n            d : 'v'\r\n        };\r\n        objectForeach(x, function (val, prop, obj) {\r\n            obj[prop] = 'y';\r\n        });\r\nconsole.log(x); // {a:'y', b:'y', c:'y', d:'y'}\r\n```\r\n\r\nIn the browser, include `./browser/object-foreach_web.js` in your page. `objectForeach` will\r\n be available in your page.\r\n","_attachments":{},"readmeFilename":"Readme.md","homepage":"https://github.com/matthewkastor/object-foreach/","bugs":"https://github.com/matthewkastor/object-foreach/issues"}