Skip to content

anthonyshort/symbol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

symbol

Polyfill for ES6 symbols for ES5 browsers. Originally written by Andrea Giammarchi. I just made it into a Component so I can use it easily.

Installation

$ component install anthonyshort/symbol

API

var Symbol = require('symbol');
var data = {};
var hidden = new Symbol();
data[hidden] = "Secret files";
console.log(data); // {}
console.log(data[hidden]); // "Secret files";

License

MIT

About

ES6 Symbol shim thing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published