Module: matchCharacterSetConstraint

Methods

(inner) matchCharacterSetConstraint(charCode, constraint) → {number|false}

Checks if a given character code matches one of the programs character code constraints.

Parameters:
NameTypeDescription
charCodenumber

The number to check

constraintcharacterCodeConstraintsAttributes

The character code constraint object to match against.

Source:
Returns:

If the charCode matched the constraint the function will return the charCode else false will be returned.

Type
number | false