hd-utils
Version:
A handy utils for modern JS developers
18 lines (17 loc) • 405 B
TypeScript
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @since 4.0.0
* @category Lang
* @example
* isObjectLike({}) // true
*
* isObjectLike([1, 2, 3]) // true
*
* isObjectLike(Function) // false
*
* isObjectLike(null) // false
*/
declare function isObjectLike(value: any): value is object;
export default isObjectLike;