Function isArrayLikeObject

  • This method is similar to isArrayLike, with the only difference of checking whether value is also an object.

    Type Parameters

    • Value

    Parameters

    Returns Value extends FunctionT
        ? false
        : Value extends {
                length: number;
            }
            ? true
            : false

    Since

    1.0.0

    Example

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

    Example

    isArrayLikeObject(document.body.children);
    // => true

    Example

    isArrayLikeObject("abc");
    // => false

    Example

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