simple-assign
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/simple-assign package

0.1.0 • Public • Published

simple-assign

This is a simple implementation Object.assign that has been graciously stolen from babel's extends helper.

Note: This is just the function implementation. It is not a ponyfill and it does not check for the existence of Object.assign for you. To make a true ponyfill that returns the native implementation if available, you can do something like this:

Example:

import assign from 'simple-assign';
 
export default Object.assign || assign;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    49,239
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    49,239

Package Sidebar

Install

npm i simple-assign

Weekly Downloads

49,239

Version

0.1.0

License

MIT

Last publish

Collaborators

  • neilgabbadon