shrine-medco/shrine-webclient/src/main/html/node_modules/for-own23de2099ce18release/1.22.2.4
shrine-medco/shrine-webclient/src/main/html/node_modules/for-own
23de2099ce18release/1.22.2.4
README.md
README.md
for-own ![NPM version](http://badge.fury.io/js/for-own)
Iterate over the own and inherited enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning false.
- Install
- Install with npm:
bash npm i for-own --save
Run tests
bash npm test
Usage
js var forOwn = require('for-own'); var obj = {a: 'foo', b: 'bar', c: 'baz'}; var values = []; var keys = []; forOwn(obj, function (value, key, o) { keys.push(key); values.push(value); }); console.log(keys); //=> ['a', 'b', 'c']; console.log(values); //=> ['foo', 'bar', 'baz'];
Author
Jon Schlinkert
+ github/jonschlinkert + twitter/jonschlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license
_This file was generated by verb-cli on September 20, 2014._
c4science · Help