Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

shimbol

WebReflection2ISC0.1.2

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

Symbol, unique, key, IE11

readme

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;