@ariesclark/object
v0.3.1
Published
Fast, efficient, and easy-to-use object extensions for TypeScript.
Downloads
10
Readme
Fast, efficient, and easy-to-use object extensions for TypeScript.
Packages
Installation
npm install @ariesclark/extensions
# Or directly, if you only need the object extension.
npm install @ariesclark/object
Documentation
empty
(function)
Parameters:
- value (
unknown
)
returns: boolean
identity
(function)
A function that returns the value passed to it, unchanged.
Parameters:
- value (
T
)
returns: T
keys
(function)
Parameters:
- object (
T
)
returns: (keyof T)[]
omit
(function)
Parameters:
- object (
T
) - keys (
K[]
)
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)