\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82 csarite.com
KUJUNTI.ID MINISH3LL
Path : /var/www/html/infraai.ai/frontend/node_modules/es-abstract-get/test/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/infraai.ai/frontend/node_modules/es-abstract-get/test/Get.js


'use strict';

var test = require('tape');
var v = require('es-value-fixtures');

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

test('Get', function (t) {
	t['throws'](
		// @ts-expect-error
		function () { return Get('a', 'a'); },
		TypeError,
		'Throws a TypeError if `O` is not an Object'
	);
	t['throws'](
		// @ts-expect-error
		function () { return Get({ 7: 7 }, 7); },
		TypeError,
		'Throws a TypeError if `P` is not a property key'
	);

	var sentinel = {};

	t.test('Symbols', { skip: !v.hasSymbols }, function (st) {
		var sym = Symbol('sym');
		var obj = /** @type {Record<symbol, unknown>} */ ({});
		obj[sym] = sentinel;

		st.equal(Get(obj, sym), sentinel, 'returns property `P` if it exists on object `O`');

		st.end();
	});

	t.equal(Get({ a: sentinel }, 'a'), sentinel, 'returns property `P` if it exists on object `O`');
	t.equal(
		// @ts-expect-error
		Get({}, 'a'),
		undefined,
		'returns undefined if property `P` does not exist on object `O`'
	);

	t.end();
});

© KUJUNTI.ID