Sha256: 7bdd03f8d47724aed38a75e6e856382593a456a69723113c3d251b7dc4990c2b

Contents?: true

Size: 389 Bytes

Versions: 88

Compression:

Stored size: 389 Bytes

Contents

'use strict';

var every = require('./every');

module.exports = function isSamePropertyDescriptor(ES, D1, D2) {
	var fields = [
		'[[Configurable]]',
		'[[Enumerable]]',
		'[[Get]]',
		'[[Set]]',
		'[[Value]]',
		'[[Writable]]'
	];
	return every(fields, function (field) {
		if ((field in D1) !== (field in D2)) {
			return false;
		}
		return ES.SameValue(D1[field], D2[field]);
	});
};

Version data entries

88 entries across 83 versions & 11 rubygems

Version Path
immosquare-cleaner-0.1.68 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.67 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.66 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.65 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.64 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.63 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
rapid_stack-0.2.0 templates/frontend/node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
rapid_stack-0.1.1 templates/FrontEnd/node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
rapid_stack-0.1.0 templates/FrontEnd/node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.62 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.61 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.60 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.59 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.58 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.57 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.56 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.55 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.54 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.53 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js
immosquare-cleaner-0.1.52 node_modules/es-abstract/helpers/isSamePropertyDescriptor.js