UNPKG

ember-source

Version:

A JavaScript framework for creating ambitious web applications

12 lines (9 loc) 260 B
import { e as isObject } from './mandatory-setter-BiXq-dpN.js'; const NAMES = new WeakMap(); function setName(obj, name) { if (isObject(obj)) NAMES.set(obj, name); } function getName(obj) { return NAMES.get(obj); } export { getName as g, setName as s };