initial commit
This commit is contained in:
21
node_modules/object.reduce/LICENSE
generated
vendored
Normal file
21
node_modules/object.reduce/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
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
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
95
node_modules/object.reduce/README.md
generated
vendored
Normal file
95
node_modules/object.reduce/README.md
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
# object.reduce [](https://www.npmjs.com/package/object.reduce) [](https://npmjs.org/package/object.reduce) [](https://travis-ci.org/jonschlinkert/object.reduce)
|
||||
|
||||
> Reduces an object to a value that is the accumulated result of running each property in the object through a callback.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install --save object.reduce
|
||||
```
|
||||
|
||||
Install with [yarn](https://yarnpkg.com):
|
||||
|
||||
```sh
|
||||
$ yarn add object.reduce
|
||||
```
|
||||
|
||||
Install with [bower](https://bower.io/)
|
||||
|
||||
```sh
|
||||
$ bower install object.reduce --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
the initial value (or value from the previous callback call), the `value` of the current property, the `key` of the current property, and the `object` over which the function is iterating. Node.js/JavaScript utility.)_
|
||||
|
||||
**Params**
|
||||
|
||||
* `object` **{Object}**: The object to iterate over (the iteratee)
|
||||
* `fn` **{Function}**: The function invoked per iteration.
|
||||
* `init` **{Object}**: The initial value to use for the accumulator.
|
||||
* `thisArg` **{Object}**: (optional) Object to use as the invocation context for the iterator (expose as `this` inside the iterator)
|
||||
|
||||
Executes the given callback `fn` once for each own enumerable property in the object. The callback receives the following arguments:
|
||||
|
||||
* `acc`: the initial value (or value from the previous callback call),
|
||||
* `value`: the of the current property,
|
||||
* `key`: the of the current property, and
|
||||
* the original `object` over which the function is iterating.
|
||||
|
||||
**Example**
|
||||
|
||||
```js
|
||||
var reduce = require('object.reduce');
|
||||
var a = {a: 'foo', b: 'bar', c: 'baz'};
|
||||
|
||||
reduce(a, function(acc, value, key, obj) {
|
||||
acc[key] = value.toUpperCase();
|
||||
return acc;
|
||||
}, {});
|
||||
|
||||
//=> {a: 'FOO', b: 'BAR', c: 'BAZ'};
|
||||
```
|
||||
|
||||
## About
|
||||
|
||||
### Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
||||
|
||||
### 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](https://twitter.com/jonschlinkert)
|
||||
|
||||
### License
|
||||
|
||||
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT License](LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 17, 2017._
|
||||
31
node_modules/object.reduce/index.js
generated
vendored
Normal file
31
node_modules/object.reduce/index.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/*!
|
||||
* object.reduce <https://github.com/jonschlinkert/object.reduce>
|
||||
*
|
||||
* Copyright (c) 2014-2015, 2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var makeIterator = require('make-iterator');
|
||||
var forOwn = require('for-own');
|
||||
|
||||
module.exports = function reduce(target, fn, acc, thisArg) {
|
||||
var first = arguments.length > 2;
|
||||
if (target && !Object.keys(target).length && !first) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var iterator = makeIterator(fn, thisArg);
|
||||
|
||||
forOwn(target, function(value, key, orig) {
|
||||
if (!first) {
|
||||
acc = value;
|
||||
first = true;
|
||||
} else {
|
||||
acc = iterator(acc, value, key, orig);
|
||||
}
|
||||
});
|
||||
|
||||
return acc;
|
||||
};
|
||||
78
node_modules/object.reduce/package.json
generated
vendored
Normal file
78
node_modules/object.reduce/package.json
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"_from": "object.reduce@^1.0.0",
|
||||
"_id": "object.reduce@1.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-b+NI8qx/oPlcpiEiZZkJaCW7A60=",
|
||||
"_location": "/object.reduce",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "object.reduce@^1.0.0",
|
||||
"name": "object.reduce",
|
||||
"escapedName": "object.reduce",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/undertaker"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/object.reduce/-/object.reduce-1.0.1.tgz",
|
||||
"_shasum": "6fe348f2ac7fa0f95ca621226599096825bb03ad",
|
||||
"_spec": "object.reduce@^1.0.0",
|
||||
"_where": "D:\\Air66 Files\\dev_sites\\www.airurl.dev.cc\\user\\plugins\\air66Theme\\node_modules\\undertaker",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/object.reduce/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"for-own": "^1.0.0",
|
||||
"make-iterator": "^1.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Reduces an object to a value that is the accumulated result of running each property in the object through a callback.",
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.11",
|
||||
"mocha": "^3.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/jonschlinkert/object.reduce",
|
||||
"keywords": [
|
||||
"object",
|
||||
"reduce"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "object.reduce",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jonschlinkert/object.reduce.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"verb": {
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
}
|
||||
},
|
||||
"version": "1.0.1"
|
||||
}
|
||||
Reference in New Issue
Block a user