Function isObjectLike

  • Checks if value is object-like. A value is object-like if it's not null/undefined and has a typeof result of object.

    Parameters

    • value: unknown

    Returns value is RecordT

    Since

    1.0.0

    Example

    isObjectLike({});
    // => true

    Example

    isObjectLike([1, 2, 3]);
    // => true

    Example

    isObjectLike(() => 0);
    // => false

    Example

    isObjectLike(null);
    // => false