JavaScript: Reflect.isExtensible

By Xah Lee. Date: . Last updated: .

New in JS2015.

Reflect.isExtensible(obj)
Return true if obj is extensible. Else, false.

If obj is not object, throw a TypeError exception.

const jj = {};
console.log(Reflect.isExtensible(jj));
Reflect.preventExtensions(jj);
console.log(Reflect.isExtensible(jj) === false);

JavaScript Prevent Change Property

BUY
ΣJS
JavaScript in Depth

JS Obj Reference

Reflect