UNPKG

264 BJavaScriptView Raw
1/**
2 * Utility module to work with EcmaScript Symbols.
3 *
4 * @module symbol
5 */
6
7/**
8 * Return fresh symbol.
9 *
10 * @return {Symbol}
11 */
12export const create = Symbol
13
14/**
15 * @param {any} s
16 * @return {boolean}
17 */
18export const isSymbol = s => typeof s === 'symbol'