Fast, efficient, and easy-to-use object extensions for TypeScript.
Packages
Installation
npm install @ariesclark/extensions
npm install @ariesclark/object
Documentation
identity
(function)
A function that returns the value passed to it, unchanged.
Parameters:
returns: 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)
empty
(function)
Parameters:
returns: boolean