8 lines
219 B
JavaScript
8 lines
219 B
JavaScript
|
// 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;
|
||
|
};
|
||
|
});
|