You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.
A tiny JavaScript library for creation of fully immutable objects and arrays
API
Constantie(object||array)
Installation
yarn add constantie
Usage
constConstantie=require("constantie");constobj=Constantie({a: 1,b: 2,c: 3});constarr=Constantie([1,2,3]);obj.d=4;// Error! You can't change properties of this objectObject.defineProperty(obj,"d",{value: 4,writable: true,enumerable: true,configurable: true});// Error! You can't change properties of this objectarr.push(4);// Error! You can't change elements of this array