Sha256: e44b935f83a0e9d562e9d7ad82cfa4e7da334b34642aaae2aa0b130cdafccacf
Contents?: true
Size: 446 Bytes
Versions: 274
Compression:
Stored size: 446 Bytes
Contents
'use strict'; var has = require('has'); var Type = require('./Type'); var assertRecord = require('../helpers/assertRecord'); // https://262.ecma-international.org/5.1/#sec-8.10.1 module.exports = function IsAccessorDescriptor(Desc) { if (typeof Desc === 'undefined') { return false; } assertRecord(Type, 'Property Descriptor', 'Desc', Desc); if (!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]')) { return false; } return true; };
Version data entries
274 entries across 30 versions & 4 rubygems