Skip to content

Module allows you to freeze any object to prevent its edition

Notifications You must be signed in to change notification settings

larchanka/deepfreeze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Module allows you to freeze any object to prevent its edition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages