JavaScript: Object.isExtensible

By Xah Lee. Date: . Last updated: .
Object.isExtensible(obj)
Return true if a object obj is an object and is extensible , else false.

Tip: Better is Reflect.isExtensible . It throws error if argument is not object.

console.log(Object.isExtensible({}));
// warning: false may mean the argument is not an object
console.log(Object.isExtensible(3) === false);

JavaScript Prevent Change Property

BUY
ΣJS
JavaScript in Depth

JS Obj Reference

Object Object

prototype