shimbol

0.1.2 • Public • Published

shimbol()

Build Status Coverage Status

A simple Symbol-like function to create one-off unique keys.

It uses native Symbol() if available, it fallbacks with a unique ID as string in older browsers.

import shimbol from 'shimbol';
// or const shimbol = require('shimbol');
 
const uniqueKey = shimbol();
object[uniqueKey] = value;

Readme

Keywords

Package Sidebar

Install

npm i shimbol

Weekly Downloads

39

Version

0.1.2

License

ISC

Unpacked Size

3.14 kB

Total Files

8

Last publish

Collaborators

  • webreflection