NewDash

    Function isLength

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

      Note: This method is loosely based on ToLength.

      Parameters

      • value: any

        The value to check.

      Returns boolean

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

      5.5.0

      isLength(3)
      // => true

      isLength(Number.MIN_VALUE)
      // => false

      isLength(Infinity)
      // => false

      isLength('3')
      // => false
    MMNEPVFCICPMFPCPTTAAATR