MCPcopy Create free account
hub / github.com/sindresorhus/execa / isObject

Function isObject

lib/stdio/type.js:153–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151const isAsyncIterableObject = value => isObject(value) && typeof value[Symbol.asyncIterator] === 'function';
152const isIterableObject = value => isObject(value) && typeof value[Symbol.iterator] === 'function';
153const isObject = value => typeof value === 'object' && value !== null;
154
155// Types which modify `subprocess.std*`
156export const TRANSFORM_TYPES = new Set(['generator', 'asyncGenerator', 'duplex', 'webTransform']);

Callers 2

isAsyncIterableObjectFunction · 0.85
isIterableObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected