LuCI. validation

Classes

Validator
ValidatorFactory

Methods

(static) arrayle(a, b) → {boolean}

Compare two arrays element-wise: return true if a < b in lexicographic element comparison.

Parameters:
NameTypeDescription
aArray.<number>

First array.

bArray.<number>

Second array.

Returns:

True if arrays compare as a < b, false otherwise.

Type: 
boolean

(static) bytelen(x) → {number}

Return byte length of a string using Blob (UTF-8 byte count).

Parameters:
NameTypeDescription
xstring

Input string.

Returns:

Byte length of the string.

Type: 
number