How to use the @glimmer/util.isObject function in @glimmer/util

To help you get started, we’ve selected a few @glimmer/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glimmerjs / glimmer-vm / packages / @glimmer / reference / lib / iterable-impl.ts View on Github external
get(key: unknown): T | undefined {
    if (isObject(key) || typeof key === 'function') {
      return this.weakMap.get(key as object);
    } else {
      return this.primitiveMap.get(key);
    }
  }
}
github glimmerjs / glimmer-vm / packages / @glimmer / reference / lib / iterable-impl.ts View on Github external
set(key: unknown, value: T) {
    if (isObject(key) || typeof key === 'function') {
      this.weakMap.set(key as object, value);
    } else {
      this.primitiveMap.set(key, value);
    }
  }