Name: ember-ordered-set
Owner: Ember.js
Description: null
Created: 2017-11-05 20:57:02.0
Updated: 2017-11-06 00:15:48.0
Pushed: 2018-05-19 16:26:28.0
Homepage: null
Size: 137
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The OrderedSet
class lets you store unique values of any type, whether
primitive values or object references. It is mostly similar to the native
Set
class introduced in ES2015.
r install @ember/ordered-set
After installing you can import OrderedSet
from @ember/ordered-set
:
rt OrderedSet from '@ember/ordered-set';
The OrderedSet
class has mostly the same API as the native Set
class with a few differences:
create()
method exists for symmetry with Ember.Object
length
property does not exist on OrderedSet
OrderedSet
has an isEmpty()
methodentries()
, keys()
and values()
methods, but there is a
toArray()
method instead@@iterator
symbol is not definedOrderedSet
has a copy()
methodember-ordered-set is licensed under the MIT License.