deep-freeze-es6
deep freeze, works with Map and Set
Quick example
import { deepFreeze } from "deep-freeze-es6";
const obj = deepFreeze({
map: new Map([
[1, 1],
[2, 2],
]),
});
obj.map.clear(); // Error: map is read-only
deep freeze, works with Map and Set
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
Note: no notable changes