Skip to main content
Module

x/lodash_es/mod.ts>isLength

lodash for deno use
Latest
function isLength
import { isLength } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

Checks if value is a valid array-like length.

Note: This method is loosely based on ToLength.

Examples

_.isLength(3); // => true

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

_.isLength(Infinity); // => false

_.isLength('3'); // => false

Parameters

value

The value to check.