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