Sha256: 277c9682aecc4a7b6a52a33894717d82cc4599dc2f27936e8b01fb7307df58dc
Contents?: true
Size: 216 Bytes
Versions: 3
Compression:
Stored size: 216 Bytes
Contents
import { isObject } from './spec'; const NAMES = new WeakMap(); export function setName(obj, name) { if (isObject(obj)) NAMES.set(obj, name); } export function getName(obj) { return NAMES.get(obj); }
Version data entries
3 entries across 3 versions & 1 rubygems