Taiga UI 5.0 is out!

Miscellaneous CDK

Examples Setup GitHub

On this page

Some utils to simplify the development process

assert

Logs assert into console in dev mode

There is a console assert:
"Today is not a friday"

getPaymentSystem

Card number to its payment system
'' = getPaymentSystem(cardNumber);

isPresent

Checks value not to be null or undefined
false = isPresent(value);

markControlAsTouchedAndValidate

Recursively marks form control as touched and triggers validation

Value is invalid

Value is invalid

Value is invalid

Value is invalid