@fal-works/deep-freeze
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

deep-freeze

import deepFreeze from "@fal-works/deep-freeze";

const a = deepFreeze({ b: { c: 42 } });
a.b.c = 1984; // compile error

Note: There are many implementation ideas for freezing objects deeply and probably this module does not cover all cases, so you might also want to consider using another library.

Readme

Keywords

none

Package Sidebar

Install

npm i @fal-works/deep-freeze

Weekly Downloads

2

Version

0.1.0

License

CC0-1.0

Unpacked Size

11.7 kB

Total Files

7

Last publish

Collaborators

  • fal-works