Operators — overview

Tree-shakeable fluent entry points for the frontend.

Import: @koalarx/utils/operators

Start from the function and chain with .. Return type is usually Kl* (not a primitive).

typescript
import { format, maskCpf, clear, split } from '@koalarx/utils/operators';

format(new Date('2023-10-01'), 'dd/MM/yyyy').split('/');
maskCpf('12345678909').onlyNumbers();
clear('Hello World').toCamelCase().toString();
split('a,,b,c', ',').clearEmptyValues();

Note: maskCpf from KlString returns string; from operators it returns KlString.