Sha256: 08f09423c6a3b74604dba99c42fef34b860f59651589e40b1bfe6dcf13347340

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

import { isObject } from './spec';
import WeakSet from './weak_set';
const PROXIES = new WeakSet();
export function isProxy(object) {
    if (isObject(object)) {
        return PROXIES.has(object);
    }
    return false;
}
export function setProxy(object) {
    if (isObject(object)) {
        PROXIES.add(object);
    }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-utils/lib/is_proxy.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-utils/lib/is_proxy.js