Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/CanBeHeldWeakly.js
r0c6b92a r79a0317 2 2 3 3 var KeyForSymbol = require('./KeyForSymbol'); 4 var Type = require('./Type'); 4 5 var isObject = require('../helpers/isObject'); 5 6 6 7 // https://262.ecma-international.org/14.0/#sec-canbeheldweakly 7 8 8 9 module.exports = function CanBeHeldWeakly(v) { 9 if ( Type(v) === 'Object') {10 if (isObject(v)) { 10 11 return true; // step 1 11 12 }
Note:
See TracChangeset
for help on using the changeset viewer.