-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
50 lines (50 loc) · 2.35 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"name": "object-assign",
"version": "0.2.2",
"description": "ES6 Object.assign() ponyfill",
"license": "MIT",
"main": "object-assign.js",
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/object-assign"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"object-assign.js"
],
"keywords": [
"object",
"assign",
"extend",
"properties",
"es6",
"ecmascript",
"harmony",
"ponyfill",
"prollyfill",
"polyfill",
"shim",
"browser"
],
"devDependencies": {
"mocha": "*"
},
"readme": "# object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign)\n\n> ES6 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) ponyfill\n\n> Ponyfill: A polyfill that doesn't overwrite the native method\n\n\n## Install\n\nDownload [manually](https://github.com/sindresorhus/object-assign/releases) or with a package-manager.\n\n```bash\n$ npm install --save object-assign\n```\n\n```bash\n$ bower install --save object-assign\n```\n\n```bash\n$ component install sindresorhus/object-assign\n```\n\n\n## Usage\n\n```js\nobjectAssign({foo: 0}, {bar: 1});\n//=> {foo: 0, bar: 1}\n\n// multiple sources\n[{bar: 1}, {baz: 2}].reduce(objectAssign, {foo: 0});\n//=> {foo: 0, bar: 1, baz: 2}\n```\n\n\n## API\n\n### objectAssign(target, source)\n\nAssigns enumerable own properties of the `source` object to the `target` object and returns the `target` object.\n\n\n## Multiple sources\n\nUnfortunately support for multiple sources aren't defined in the Object.assign spec.\n\nHowever, you can easily achieve it with `[target, source, source, ...].reduce(objectAssign)`.\n\n\n## Resources\n\n- [ES6 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign)\n\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/object-assign/issues"
},
"homepage": "https://github.com/sindresorhus/object-assign",
"_id": "object-assign@0.2.2",
"_from": "object-assign@~0.2.1"
}