Leon4gr45's picture
Include updated package-lock.json (part 9)
cd6720a verified
Raw
History Blame Contribute Delete
284 Bytes
/**
* Determines if a given value is an instance of object.
*/
export function isObject<T>(value: any, loose = false): value is T {
return loose
? Object.prototype.toString.call(value).startsWith('[object ')
: Object.prototype.toString.call(value) === '[object Object]'
}