0.1.0 • Published 3 years ago
@fal-works/deep-freeze v0.1.0
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.
0.1.0
3 years ago