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

Version Path
immosquare-cleaner-0.1.30 node_modules/es-abstract/2018/IsGenericDescriptor.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2015/IsGenericDescriptor.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2017/IsGenericDescriptor.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2020/IsGenericDescriptor.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2022/IsGenericDescriptor.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2023/IsGenericDescriptor.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2021/IsGenericDescriptor.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2017/IsGenericDescriptor.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2023/IsGenericDescriptor.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2016/IsGenericDescriptor.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2020/IsGenericDescriptor.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2022/IsGenericDescriptor.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2015/IsGenericDescriptor.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2018/IsGenericDescriptor.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2019/IsGenericDescriptor.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2021/IsGenericDescriptor.js
immosquare-cleaner-0.1.28 node_modules/es-abstract/2015/IsGenericDescriptor.js
immosquare-cleaner-0.1.28 node_modules/es-abstract/2016/IsGenericDescriptor.js
immosquare-cleaner-0.1.28 node_modules/es-abstract/2017/IsGenericDescriptor.js
immosquare-cleaner-0.1.28 node_modules/es-abstract/2021/IsGenericDescriptor.js