objectology
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Objectology

n. The study of objects.

This is a "low-level" JavaScript library for inspecting and modifying objects. It contains functions for retrieving the prototypes and constructors of objects, giving them string names, enumerating their keys, modifying property descriptors, and more.

These are generally more powerful or complex than standard functions like Object.keys and Object.getOwnPropertyNames.

More advanced functionality can include:

  1. Replicate an object both structurally and behaviorally
  2. Flattening objects with complex prototype chains.
  3. Creating functions with specific characteristics, such as a custom name.
  4. Calling a function in a special way (e.g. with new).
  5. Determining the special declaration characteristics of a function, such as whether it is an arrow function or an async function.

Readme

Keywords

none

Package Sidebar

Install

npm i objectology

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

141 kB

Total Files

134

Last publish

Collaborators

  • gregros