Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ember/ordered-set

Package Overview
Dependencies
Maintainers
13
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ember/ordered-set

The default blueprint for ember-cli addons.

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27K
increased by0.04%
Maintainers
13
Weekly downloads
 
Created
Source

ember-ordered-set

npm Build Status

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.

Compatibility

  • Ember.js v3.16 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install @ember/ordered-set

Usage

After installing you can import OrderedSet from @ember/ordered-set:

import OrderedSet from '@ember/ordered-set';

The OrderedSet class has mostly the same API as the native Set class with a few differences:

  • The constructor does not take any arguments
  • A static create() method exists for symmetry with Ember.Object
  • A static length property does not exist on OrderedSet
  • OrderedSet has an isEmpty() method
  • There are no entries(), keys() and values() methods, but there is a toArray() method instead
  • The @@iterator symbol is not defined
  • OrderedSet has a copy() method

Contributing

See the Contributing guide for details.

License

ember-ordered-set is licensed under the MIT License.

Keywords

FAQs

Package last updated on 28 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc