Fast, efficient, and easy-to-use object extensions for TypeScript.
Packages
Installation
npm install @ariesclark/extensions
npm install @ariesclark/object
Documentation
empty
(function)
Parameters:
returns: boolean
identity
(function)
A function that returns the value passed to it, unchanged.
Parameters:
returns: T
keys
(function)
Parameters:
returns: (keyof T)[]
omit
(function)
Parameters:
returns: Omit<T, K>
pick
(function)
`{ assign, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwn, is, isExtensible, isFrozen, isSealed,
// keys,
preventExtensions, seal, setPrototypeOf, values }` (variable)