TypeScript Tested
Typed Object.keys and Object.entries
Helpers that keep key types instead of widening to string, for objects you know the shape of.
Loading snippets…
4 snippets
Helpers that keep key types instead of widening to string, for objects you know the shape of.
An event emitter whose event names and payloads are checked by the compiler through a generic map type.
Group an array into a Record by a property or function while keeping the item type.
A debounce function whose returned function keeps the parameter types and exposes cancel() and flush().