es6.object.prevent-extensions.js 286 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 // 19.1.2.15 Object.preventExtensions(O) var isObject = require('./$.is-object'); require('./$.object-sap')('preventExtensions', function($preventExtensions){ return function preventExtensions(it){ return $preventExtensions && isObject(it) ? $preventExtensions(it) : it; }; });