Sha256: 1a991d1a6aedd1a9fccf487112daae8b387b59329edc28e5572de31c5c85c78e
Contents?: true
Size: 555 Bytes
Versions: 243
Compression:
Stored size: 555 Bytes
Contents
'use strict'; var assertRecord = require('../helpers/assertRecord'); var IsAccessorDescriptor = require('./IsAccessorDescriptor'); var IsDataDescriptor = require('./IsDataDescriptor'); var Type = require('./Type'); // https://262.ecma-international.org/6.0/#sec-isgenericdescriptor module.exports = function IsGenericDescriptor(Desc) { if (typeof Desc === 'undefined') { return false; } assertRecord(Type, 'Property Descriptor', 'Desc', Desc); if (!IsAccessorDescriptor(Desc) && !IsDataDescriptor(Desc)) { return true; } return false; };
Version data entries
243 entries across 27 versions & 2 rubygems