{"id":13410946,"url":"https://github.com/sindresorhus/object-assign","last_synced_at":"2025-04-10T15:42:22.657Z","repository":{"id":13762411,"uuid":"16457190","full_name":"sindresorhus/object-assign","owner":"sindresorhus","description":"ES2015 Object.assign() ponyfill","archived":false,"fork":false,"pushed_at":"2023-11-05T18:16:06.000Z","size":42,"stargazers_count":919,"open_issues_count":0,"forks_count":82,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-04-10T09:09:10.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null,"governance":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2014-02-02T15:45:54.000Z","updated_at":"2025-02-18T02:50:06.000Z","dependencies_parsed_at":"2022-08-07T07:15:41.231Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/object-assign","commit_stats":{"total_commits":61,"total_committers":14,"mean_commits":4.357142857142857,"dds":0.3114754098360656,"last_synced_commit":"009a13650262afb53408fc8b5e3fb2d1f2fce941"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fobject-assign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fobject-assign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fobject-assign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fobject-assign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/object-assign/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243496,"owners_count":21071054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:01:10.385Z","updated_at":"2025-04-10T15:42:22.618Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","readme":"# object-assign\n\n\u003e ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) [ponyfill](https://ponyfill.com)\n\n## Use the built-in\n\nNode.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari),\nsupport `Object.assign()` :tada:. If you target only those environments, then by all\nmeans, use `Object.assign()` instead of this package.\n\n## Install\n\n```sh\nnpm install object-assign\n```\n\n## Usage\n\n```js\nconst objectAssign = require('object-assign');\n\nobjectAssign({foo: 0}, {bar: 1});\n//=\u003e {foo: 0, bar: 1}\n\n// multiple sources\nobjectAssign({foo: 0}, {bar: 1}, {baz: 2});\n//=\u003e {foo: 0, bar: 1, baz: 2}\n\n// overwrites equal keys\nobjectAssign({foo: 0}, {foo: 1}, {foo: 2});\n//=\u003e {foo: 2}\n\n// ignores null and undefined sources\nobjectAssign({foo: 0}, null, {bar: 1}, undefined);\n//=\u003e {foo: 0, bar: 1}\n```\n\n## API\n\n### objectAssign(target, [source, …])\n\nAssigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.\n\n## Resources\n\n- [ES2015 spec - Object.assign](https://www.ecma-international.org/ecma-262/6.0/#sec-object.assign)\n","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Packages","JavaScript","Objects","Polyfills","Number"],"sub_categories":["Polyfills","Brunch Plugins","Polyfills JavaScript"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fobject-assign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fobject-assign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fobject-assign/lists"}