source: trip-planner-front/node_modules/core-js/modules/es.object.is-extensible.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 585 bytes
Line 
1var $ = require('../internals/export');
2var fails = require('../internals/fails');
3var isObject = require('../internals/is-object');
4
5// eslint-disable-next-line es/no-object-isextensible -- safe
6var $isExtensible = Object.isExtensible;
7var FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });
8
9// `Object.isExtensible` method
10// https://tc39.es/ecma262/#sec-object.isextensible
11$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
12 isExtensible: function isExtensible(it) {
13 return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
14 }
15});
Note: See TracBrowser for help on using the repository browser.