Sha256: d4b0b2ee570557677be3846db47c5cf28d3cf51ff84b285ee6c92595eb60b9c7

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

/**
  Returns whether Type(value) is Object.

  Useful for checking whether a value is a valid WeakMap key.

  Refs: https://tc39.github.io/ecma262/#sec-typeof-operator-runtime-semantics-evaluation
        https://tc39.github.io/ecma262/#sec-weakmap.prototype.set

  @private
  @function isObject
*/
export function isObject(value) {
    return value !== null && (typeof value === 'object' || typeof value === 'function');
}

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/spec.js
discourse-ember-source-3.5.1.1 dist/es/ember-utils/lib/spec.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-utils/lib/spec.js