aboutsummaryrefslogtreecommitdiff
path: root/node_modules/for-own/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/for-own/README.md')
-rw-r--r--node_modules/for-own/README.md52
1 files changed, 52 insertions, 0 deletions
diff --git a/node_modules/for-own/README.md b/node_modules/for-own/README.md
new file mode 100644
index 000000000..16831ab7d
--- /dev/null
+++ b/node_modules/for-own/README.md
@@ -0,0 +1,52 @@
+# for-own [![NPM version](https://badge.fury.io/js/for-own.svg)](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](https://www.npmjs.com/):
+
+```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](https://github.com/jonschlinkert)
++ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+
+## License
+Copyright (c) 2014 Jon Schlinkert, contributors.
+Released under the MIT license
+
+***
+
+_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 20, 2014._