@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)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.10latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.10
0.3.00
0.2.30
0.2.21
0.2.10
0.2.00

Package Sidebar

Install

npm i @ariesclark/object

Weekly Downloads

1

Version

0.3.1

License

MIT

Unpacked Size

9.14 kB

Total Files

20

Last publish

Collaborators

  • ariesclark