JavaScript Reflect.isExtensible() Method

The static Reflect.isExtensible() method is used to check if an object is extended or not. This method is similar to Object.isExtensible() but with some difference.

Syntax:

Parameters:

Obj: It is the target object which to check if it is extensible.

Return value:

This method returns a Boolean which indicates whether or not the target is extensible.

Exceptions:

A TypeError, if the target is not an Object.

Browser Support:

Chrome49
Edge12
Firefox42
Opera36

Example 1

Output:

true
 false

Example 2

Output:

 false
 false

Example 3

Output:

true
false




Latest Courses