Options
All
  • Public
  • Public/Protected
  • All
Menu

Module isLength

Index

References

Functions Lang

References

Renames and re-exports isLength

Lang Functions

  • isLength(value: any): boolean
  • Checks if value is a valid array-like length.

    Note: This method is loosely based on ToLength.

    since

    5.5.0

    example
    isLength(3)
    // => true

    isLength(Number.MIN_VALUE)
    // => false

    isLength(Infinity)
    // => false

    isLength('3')
    // => false

    Parameters

    • value: any

      The value to check.

    Returns boolean

    Returns true if value is a valid length, else false.