This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
@ember/ordered-set with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
OrderedSet class lets you store unique values of any type, whether
primitive values or object references. It is mostly similar to the native
class introduced in ES2015.
ember install @ember/ordered-set
After installing you can import
import OrderedSet from '@ember/ordered-set';
OrderedSet class has mostly the same API as the native
class with a few differences:
create()method exists for symmetry with
lengthproperty does not exist on
values()methods, but there is a
@@iteratorsymbol is not defined
ember-ordered-set is licensed under the MIT License.