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