Function isLength

  • Checks if value is a valid array-like length.

    Parameters

    • value: unknown

    Returns value is number

    Since

    1.0.0

    Example

    isLength(2);
    // => true

    Example

    isLength(Number.MIN_VALUE);
    // => false

    Example

    isLength(Infinity);
    // => false

    Example

    isLength("2");
    // => false