Browse documentation

hasMaxLength

Checks whether a value stays within a maximum length.

Table of contents

Category

Value

Import

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

Public signature

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

Parameters

ts
value: any, length: number

Result

ts
boolean