preventExtensions

Prevents the addition of new properties to an object.

Return

Whether the object has been made non-extensible.

Parameters

target

Object to make non-extensible.