Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 лет назад
123456789101112
  1. ## simple-assign
  2. This is a simple implementation `Object.assign` that has been graciously stolen from [babel's extends helper](https://github.com/babel/babel/blob/v6.4.6/packages/babel-helpers/src/helpers.js#L165-L177).
  3. **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](https://kikobeats.com/polyfill-ponyfill-and-prollyfill/) that returns the native implementation if available, you can do something like this:
  4. **Example:**
  5. ```js
  6. import assign from 'simple-assign';
  7. export default Object.assign || assign;
  8. ```