@ariesclark/object
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published
@ariesclark/object logo

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)

Package Sidebar

Install

npm i @ariesclark/object

Weekly Downloads

37

Version

0.3.1

License

MIT

Unpacked Size

9.14 kB

Total Files

20

Last publish

Collaborators

  • ariesclark