0.3.1 • Published 1 year ago

@ariesclark/object v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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)

0.3.1

1 year ago

0.3.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago