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

es-symbol

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-symbol

A spec-compliant as much as it could be, small, and tested ES6 Symbol implementation.

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
decreased by-24.56%
Maintainers
1
Weekly downloads
 
Created
Source

es-symbol

A spec-compliant as much as it could be, small, and tested ES6 Symbol implementation.

NPM version Build Status Coverage Status Dependency Status

  • No unnecessary dependencies
  • Works in node + browser (IE8--Modern browsers)
  • Uses native Symbol if possible otherwise exports a polyfill

Usage

npm install es-symbol
var Symbol = require('es-symbol')

var sym = Symbol('foo')

var obj = {}
obj[sym] = 'hello'

// The following are true
obj.foo === undefined
obj[sym] === 'hello'

Disclaimer: This depends on ES5. If you need to support legacy browsers consider using an ES5 shim.

More information

Symbol Spec

Symbols in ECMAScript 6

License

MIT

Keywords

FAQs

Package last updated on 07 May 2015

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