source: imaps-frontend/node_modules/es-abstract/2018/IsExtensible.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 504 bytes
RevLine 
[d565449]1'use strict';
2
3var GetIntrinsic = require('get-intrinsic');
4
5var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true);
6var $isExtensible = GetIntrinsic('%Object.isExtensible%', true);
7
8var isPrimitive = require('../helpers/isPrimitive');
9
10// https://262.ecma-international.org/6.0/#sec-isextensible-o
11
12module.exports = $preventExtensions
13 ? function IsExtensible(obj) {
14 return !isPrimitive(obj) && $isExtensible(obj);
15 }
16 : function IsExtensible(obj) {
17 return !isPrimitive(obj);
18 };
Note: See TracBrowser for help on using the repository browser.