yadf

1.0.1 • Public • Published

deepfreeze

Description

Module allows you to freeze any object to prevent its edition. Based on Object.freeze.

Usage

let someObject = {
  key1: 'value',
  key2: true,
  keyObj: {
    key3: 10,
    key4: 'string'
  }
};
 
deepfreeze(someObject);

Package Sidebar

Install

npm i yadf

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mlarchanka