shrine-medco/shrine-webclient/src/main/html/node_modules/for-in23de2099ce18release/1.22.2.4
shrine-medco/shrine-webclient/src/main/html/node_modules/for-in
23de2099ce18release/1.22.2.4
README.md
README.md
for-in ![NPM version](https://www.npmjs.com/package/for-in) ![NPM downloads](https://npmjs.org/package/for-in) ![Build Status](https://travis-ci.org/jonschlinkert/for-in)
Iterate over the own and inherited enumerable properties of an objecte, and return an object with properties that evaluate to true from the callback. Exit early by returning false. JavaScript/Node.js
Install
Install with npm:
sh $ npm install for-in --save
Usage
js var forIn = require('for-in'); var obj = {a: 'foo', b: 'bar', c: 'baz'}; var values = []; var keys = []; forIn(obj, function (value, key, o) { keys.push(key); values.push(value); }); console.log(keys); //=> ['a', 'b', 'c']; console.log(values); //=> ['foo', 'bar', 'baz'];
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Building docs
Generate readme and API documentation with verb:
sh $ npm install verb && npm run docs
Or, if verb is installed globally:
sh $ verb
Running tests
Install dev dependencies:
sh $ npm install -d && npm test
Author
Jon Schlinkert
License
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
_This file was generated by verb, v, on March 27, 2016._
c4science · Help