Is Immutable Object - Node.js Object

Node.js examples for Object:Object Operation

Description

Is Immutable Object

Demo Code

isImmutable = function(x) {
   return x === null || x === undefined || typeof x === "boolean" || typeof x === "number" || typeof x === "string"
}

Related Tutorials