Dashboard
PHP:
8.4.20
OS:
Linux
User:
sinnett_country
/
/
usr
/
share
/
nodejs
/
es-abstract
/
2017
📤 Upload
📝 New File
📁 New Folder
Close
Editing: IsDataDescriptor.js
'use strict'; var has = require('has'); var assertRecord = require('../helpers/assertRecord'); var Type = require('./Type'); // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor module.exports = function IsDataDescriptor(Desc) { if (typeof Desc === 'undefined') { return false; } assertRecord(Type, 'Property Descriptor', 'Desc', Desc); if (!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]')) { return false; } return true; };
Save
Cancel