UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

27 lines (26 loc) 561 B
/** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @since 5.3.0 * @category Lang * @param value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * ```js * isObjectLike({}) * // => true * * isObjectLike([1, 2, 3]) * // => true * * isObjectLike(Function) * // => false * * isObjectLike(null) * // => false * ``` */ export declare function isObjectLike(value: any): boolean; export default isObjectLike;