All Projects → moondef → constantie

moondef / constantie

Licence: MIT License
A tiny JavaScript library for creation of fully immutable objects and arrays

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to constantie

php-json-schema-model-generator
Creates (immutable) PHP model classes from JSON-Schema files including all validation rules as PHP code
Stars: ✭ 36 (+125%)
Mutual labels:  immutable, immutable-objects
ate
Distributed immutable data store with strong encryption and authentication
Stars: ✭ 94 (+487.5%)
Mutual labels:  immutable, immutable-objects
nim-contra
Lightweight Self-Documenting Design by Contract Programming and Security Hardened mode.
Stars: ✭ 46 (+187.5%)
Mutual labels:  immutable, immutable-objects
relite
a redux-like library for managing state with simpler api
Stars: ✭ 60 (+275%)
Mutual labels:  immutable
react-redux-immutable-webpack-ssr-starter
React + React-Router 4 + Redux + ImmutableJS + Bootstrap + webpack 3 with with Server side rendering, Hot Reload and redux-devtools STARTER
Stars: ✭ 21 (+31.25%)
Mutual labels:  immutable
wxapp-boilerplate
微信小程序开发脚手架 (ES6, Redux, Immutable-js, Async/await, Promise, Reselect, Babel, ESLint, Stylelint, Gulp ... )
Stars: ✭ 35 (+118.75%)
Mutual labels:  immutable
rrbit-js
No description or website provided.
Stars: ✭ 11 (-31.25%)
Mutual labels:  immutable
bs-immutablejs
Reason + BuckleScript bindings to Immutable.js
Stars: ✭ 28 (+75%)
Mutual labels:  immutable
myConsole
基于 TS + React + Mobx 实现的移动端浏览器控制台开发教程
Stars: ✭ 26 (+62.5%)
Mutual labels:  immutable
json-immutable
Immutable.JS structure-aware JSON serializer/deserializer
Stars: ✭ 23 (+43.75%)
Mutual labels:  immutable
cruzdb
Append-only key-value database on a distributed shared-log
Stars: ✭ 47 (+193.75%)
Mutual labels:  immutable
fp-ts-cheatsheet
FP-TS Cheat Sheet
Stars: ✭ 276 (+1625%)
Mutual labels:  immutable
fastener
Functional Zipper for manipulating JSON
Stars: ✭ 54 (+237.5%)
Mutual labels:  immutable
isomorphic-react-redux-saga-ssr
Isomorphic, React, Redux, Saga, Server Side rendering, Hot Module Reloading, Ducks, Code Splitting
Stars: ✭ 19 (+18.75%)
Mutual labels:  immutable
optic
An Erlang/OTP library for reading and updating deeply nested immutable data.
Stars: ✭ 34 (+112.5%)
Mutual labels:  immutable
fermor
Fast, powerful, general-purpose graph traversal and modelling tools plus a performant immutable in-memory graph database.
Stars: ✭ 22 (+37.5%)
Mutual labels:  immutable
gelidum
Freeze your objects in python
Stars: ✭ 50 (+212.5%)
Mutual labels:  immutable
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Stars: ✭ 212 (+1225%)
Mutual labels:  immutable
treecko
A collection of functional and immutable helpers for working with tree data structures.
Stars: ✭ 31 (+93.75%)
Mutual labels:  immutable
Remute
C# library to create new immutable object applying lambda expressions to the existing immutable object
Stars: ✭ 57 (+256.25%)
Mutual labels:  immutable

constantie

A tiny JavaScript library for creation of fully immutable objects and arrays

API

Constantie(object || array)

Installation

yarn add constantie

Usage

const Constantie = require("constantie");

const obj = Constantie({a: 1, b: 2, c: 3});
const arr = Constantie([1, 2, 3]);

obj.d = 4; // Error! You can't change properties of this object

Object.defineProperty(obj, "d", {
  value: 4,
  writable: true,
  enumerable: true,
  configurable: true
}); // Error! You can't change properties of this object

arr.push(4); // Error! You can't change elements of this array
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].