KlArray
clearEmptyValues, split, orderBy e shuffle tipados.
typescript
import { KlArray } from '@koalarx/utils/KlArray';
map / filter / slice / flatMap / concat retornam KlArray.
| Método | Comportamento |
|---|---|
clearEmptyValues() |
Remove falsy (nova instância) |
split(maxRows) |
Chunks (nova) |
orderBy(by, direction?) |
In-place |
shuffle() |
In-place (≠ original) |