JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19998
  • Score
    100M100P100Q155332F
  • License MIT

A polyfill for Ember.assign in <= 2.4

Package Exports

  • ember-assign-polyfill
  • ember-assign-polyfill/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-assign-polyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ember-assign-polyfill

ember-assign-polyfill is built and maintained by Ship Shape. Contact us for Ember.js consulting, development, and training for your project.

npm version Download count all time npm Ember Observer Score CI

This provides a polyfill for the Ember.assign feature added in Ember 2.5.

Installation

ember install ember-assign-polyfill

Usage

import Ember from 'ember';

var a = { first: 'Robert' };
var b = { last: 'Wagner' };
var c = { company: 'Ship Shape' };

Ember.assign(a, b, c); // a === { first: 'Robert', last: 'Wagner', company: 'Ship Shape' }, b === { last: 'Wagner' }, c === { company: 'Ship Shape' }

Migration

Applications

After you upgrade your application to Ember 2.5, you should remove ember-assign-polyfill from your package.json.

Addons

Addons generally support many different Ember versions, so leaving ember-assign-polyfill in place for consumers of your addon is perfectly normal. When the addon no longer supports Ember versions older than 2.5, we recommend removing ember-assign-polyfill from your package.json and doing a major version bump.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.