Browse documentation

hasLength

Checks whether a value has the requested length.

Table of contents

Category

Value

Import

js
import { hasLength } from "valyrian.js/utils";

Public signature

ts
(value: any, length: number): boolean

Parameters

ts
value: any, length: number

Result

ts
boolean