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

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/utils/lib/name.js
discourse-ember-source-3.5.1.1 dist/es/ember-utils/lib/name.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-utils/lib/name.js