API Reference

Function signatures, parameters, and examples for every UtilTools package.

@utiltools/core — Examples

chunk(array, size)

Split an array into chunks of a given size.

import { chunk } from '@utiltools/core';

chunk([1, 2, 3, 4, 5], 2);
// → [[1, 2], [3, 4], [5]]
debounce(fn, ms)

Delay a function call until after a specified delay.

import { debounce } from '@utiltools/core';

const save = debounce(() => api.save(data), 300);
window.addEventListener('resize', save);
deepClone(value)

Create a deep clone of any serializable value.

import { deepClone } from '@utiltools/core';

const original = { a: { b: 1 } };
const copy = deepClone(original);
copy.a.b = 99; // original.a.b is still 1
Full per-function API docs for every package are coming soon. In the meantime, all packages ship with complete TypeScript types — your IDE can show you the full signature and JSDoc directly.