0.0.5 • Published 5 years ago

objectology v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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.