diff options
Diffstat (limited to 'node_modules/for-own')
-rw-r--r-- | node_modules/for-own/LICENSE | 2 | ||||
-rw-r--r-- | node_modules/for-own/README.md | 67 | ||||
-rw-r--r-- | node_modules/for-own/index.js | 12 | ||||
-rw-r--r-- | node_modules/for-own/package.json | 20 |
4 files changed, 73 insertions, 28 deletions
diff --git a/node_modules/for-own/LICENSE b/node_modules/for-own/LICENSE index fa30c4cb3..d290fe00b 100644 --- a/node_modules/for-own/LICENSE +++ b/node_modules/for-own/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2015, Jon Schlinkert. +Copyright (c) 2014-2015, 2017, Jon Schlinkert Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/node_modules/for-own/README.md b/node_modules/for-own/README.md index 16831ab7d..fd56877ae 100644 --- a/node_modules/for-own/README.md +++ b/node_modules/for-own/README.md @@ -1,18 +1,13 @@ -# for-own [](http://badge.fury.io/js/for-own) +# for-own [](https://www.npmjs.com/package/for-own) [](https://npmjs.org/package/for-own) [](https://npmjs.org/package/for-own) [](https://travis-ci.org/jonschlinkert/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`. +> Iterate over the own enumerable properties of an object, 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](https://www.npmjs.com/): -```bash -npm i for-own --save -``` - -## Run tests +Install with [npm](https://www.npmjs.com/): -```bash -npm test +```sh +$ npm install --save for-own ``` ## Usage @@ -36,17 +31,55 @@ console.log(values); //=> ['foo', 'bar', 'baz']; ``` -## Author +## About + +### Related projects + +* [arr-flatten](https://www.npmjs.com/package/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | [homepage](https://github.com/jonschlinkert/arr-flatten "Recursively flatten an array or arrays. This is the fastest implementation of array flatten.") +* [collection-map](https://www.npmjs.com/package/collection-map): Returns an array of mapped values from an array or object. | [homepage](https://github.com/jonschlinkert/collection-map "Returns an array of mapped values from an array or object.") +* [for-in](https://www.npmjs.com/package/for-in): Iterate over the own and inherited enumerable properties of an object, and return an object… [more](https://github.com/jonschlinkert/for-in) | [homepage](https://github.com/jonschlinkert/for-in "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`. JavaScript/Node.js") + +### Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +### Contributors + +| **Commits** | **Contributor** | +| --- | --- | +| 10 | [jonschlinkert](https://github.com/jonschlinkert) | +| 1 | [javiercejudo](https://github.com/javiercejudo) | + +### Building docs + +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ + +To generate the readme, run the following command: + +```sh +$ npm install -g verbose/verb#dev verb-generate-readme && verb +``` + +### Running tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` + +### Author **Jon Schlinkert** -+ [github/jonschlinkert](https://github.com/jonschlinkert) -+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) +* [github/jonschlinkert](https://github.com/jonschlinkert) +* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) + +### License -## License -Copyright (c) 2014 Jon Schlinkert, contributors. -Released under the MIT license +Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). *** -_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 20, 2014._ +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 26, 2017._
\ No newline at end of file diff --git a/node_modules/for-own/index.js b/node_modules/for-own/index.js index d07256c7c..74e2d7551 100644 --- a/node_modules/for-own/index.js +++ b/node_modules/for-own/index.js @@ -1,8 +1,8 @@ /*! * for-own <https://github.com/jonschlinkert/for-own> * - * Copyright (c) 2014-2016, Jon Schlinkert. - * Licensed under the MIT License. + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. */ 'use strict'; @@ -10,10 +10,10 @@ var forIn = require('for-in'); var hasOwn = Object.prototype.hasOwnProperty; -module.exports = function forOwn(o, fn, thisArg) { - forIn(o, function(val, key) { - if (hasOwn.call(o, key)) { - return fn.call(thisArg, o[key], key, o); +module.exports = function forOwn(obj, fn, thisArg) { + forIn(obj, function(val, key) { + if (hasOwn.call(obj, key)) { + return fn.call(thisArg, obj[key], key, obj); } }); }; diff --git a/node_modules/for-own/package.json b/node_modules/for-own/package.json index 02ae917b3..0f1b50245 100644 --- a/node_modules/for-own/package.json +++ b/node_modules/for-own/package.json @@ -1,9 +1,13 @@ { "name": "for-own", "description": "Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`. JavaScript/Node.js.", - "version": "0.1.4", + "version": "0.1.5", "homepage": "https://github.com/jonschlinkert/for-own", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Javier Cejudo <javier@javiercejudo.com> (https://www.javiercejudo.com)", + "Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)" + ], "repository": "jonschlinkert/for-own", "bugs": { "url": "https://github.com/jonschlinkert/for-own/issues" @@ -20,13 +24,14 @@ "test": "mocha" }, "dependencies": { - "for-in": "^0.1.5" + "for-in": "^1.0.1" }, "devDependencies": { - "gulp-format-md": "^0.1.7", - "mocha": "^2.4.5" + "gulp-format-md": "^0.1.11", + "mocha": "^3.2.0" }, "keywords": [ + "for", "for-in", "for-own", "has", @@ -48,6 +53,13 @@ "plugins": [ "gulp-format-md" ], + "related": { + "list": [ + "arr-flatten", + "collection-map", + "for-in" + ] + }, "reflinks": [ "verb" ], |