reconstruct-descriptors
Deeply reconstruct any object iterating over its property descriptors.
Install
reconstruct-descriptors
is published on NPM Registry, so you can install it using any node package manager.
npm install reconstruct-descriptors # If you're using Yarn. yarn add reconstruct-descriptors
Usage
This module exports a function that receives an object and a function to iterate over property descriptors.
const immutable = const user = username = 'Bruno'console // 'Ryan' delete usernameconsole // 'Ryan'
License
Released under MIT license. You can see it here.