How to use the core-js-pure/features/composite-symbol function in core-js-pure

To help you get started, we’ve selected a few core-js-pure examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
QUnit.test('compositeSymbol', assert => {
  assert.isFunction(compositeSymbol);
  if (compositeSymbol.name) assert.name(compositeSymbol, 'compositeSymbol');

  assert.ok(Object(compositeSymbol({})) instanceof Symbol);

  const a = ['a'];
  const b = ['b'];
  const c = ['c'];

  assert.ok(compositeSymbol(a) === compositeSymbol(a));
  assert.ok(compositeSymbol(a) !== compositeSymbol(['a']));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, 1) === compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a, b) === compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, b) !== compositeSymbol(b, a));
  assert.ok(compositeSymbol(a, b, c) === compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(c, b, a));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
QUnit.test('compositeSymbol', assert => {
  assert.isFunction(compositeSymbol);
  if (compositeSymbol.name) assert.name(compositeSymbol, 'compositeSymbol');

  assert.ok(Object(compositeSymbol({})) instanceof Symbol);

  const a = ['a'];
  const b = ['b'];
  const c = ['c'];

  assert.ok(compositeSymbol(a) === compositeSymbol(a));
  assert.ok(compositeSymbol(a) !== compositeSymbol(['a']));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, 1) === compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a, b) === compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, b) !== compositeSymbol(b, a));
  assert.ok(compositeSymbol(a, b, c) === compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(c, b, a));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c, 1) === compositeSymbol(a, b, c, 1));
  assert.ok(compositeSymbol(1, a) === compositeSymbol(1, a));
  assert.ok(compositeSymbol(1, a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b));
  assert.ok(compositeSymbol(1, a, 2, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(1, 2, a, b) === compositeSymbol(1, 2, a, b));
  assert.ok(compositeSymbol(1, 2, a, b) !== compositeSymbol(1, a, b, 2));
github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
QUnit.test('compositeSymbol', assert => {
  assert.isFunction(compositeSymbol);
  if (compositeSymbol.name) assert.name(compositeSymbol, 'compositeSymbol');

  assert.ok(Object(compositeSymbol({})) instanceof Symbol);

  const a = ['a'];
  const b = ['b'];
  const c = ['c'];

  assert.ok(compositeSymbol(a) === compositeSymbol(a));
  assert.ok(compositeSymbol(a) !== compositeSymbol(['a']));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, 1) === compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a, b) === compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, b) !== compositeSymbol(b, a));
  assert.ok(compositeSymbol(a, b, c) === compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(c, b, a));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c, 1) === compositeSymbol(a, b, c, 1));
  assert.ok(compositeSymbol(1, a) === compositeSymbol(1, a));
  assert.ok(compositeSymbol(1, a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b));
  assert.ok(compositeSymbol(1, a, 2, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(1, 2, a, b) === compositeSymbol(1, 2, a, b));
  assert.ok(compositeSymbol(1, 2, a, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(a, a) === compositeSymbol(a, a));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, ['a']));
github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
QUnit.test('compositeSymbol', assert => {
  assert.isFunction(compositeSymbol);
  if (compositeSymbol.name) assert.name(compositeSymbol, 'compositeSymbol');

  assert.ok(Object(compositeSymbol({})) instanceof Symbol);

  const a = ['a'];
  const b = ['b'];
  const c = ['c'];

  assert.ok(compositeSymbol(a) === compositeSymbol(a));
  assert.ok(compositeSymbol(a) !== compositeSymbol(['a']));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, 1) === compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a, b) === compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, b) !== compositeSymbol(b, a));
  assert.ok(compositeSymbol(a, b, c) === compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(c, b, a));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c, 1) === compositeSymbol(a, b, c, 1));
  assert.ok(compositeSymbol(1, a) === compositeSymbol(1, a));
  assert.ok(compositeSymbol(1, a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b));
  assert.ok(compositeSymbol(1, a, 2, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(1, 2, a, b) === compositeSymbol(1, 2, a, b));
github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
if (compositeSymbol.name) assert.name(compositeSymbol, 'compositeSymbol');

  assert.ok(Object(compositeSymbol({})) instanceof Symbol);

  const a = ['a'];
  const b = ['b'];
  const c = ['c'];

  assert.ok(compositeSymbol(a) === compositeSymbol(a));
  assert.ok(compositeSymbol(a) !== compositeSymbol(['a']));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, 1) === compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a, b) === compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, b) !== compositeSymbol(b, a));
  assert.ok(compositeSymbol(a, b, c) === compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(c, b, a));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c, 1) === compositeSymbol(a, b, c, 1));
  assert.ok(compositeSymbol(1, a) === compositeSymbol(1, a));
  assert.ok(compositeSymbol(1, a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b));
  assert.ok(compositeSymbol(1, a, 2, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(1, 2, a, b) === compositeSymbol(1, 2, a, b));
  assert.ok(compositeSymbol(1, 2, a, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(a, a) === compositeSymbol(a, a));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, ['a']));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol() === compositeSymbol());
  assert.ok(compositeSymbol(1, 2) === compositeSymbol(1, 2));
  assert.ok(compositeSymbol(1, 2) !== compositeSymbol(2, 1));
github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
assert.ok(compositeSymbol(a, b) !== compositeSymbol(b, a));
  assert.ok(compositeSymbol(a, b, c) === compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(c, b, a));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c, 1) === compositeSymbol(a, b, c, 1));
  assert.ok(compositeSymbol(1, a) === compositeSymbol(1, a));
  assert.ok(compositeSymbol(1, a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b));
  assert.ok(compositeSymbol(1, a, 2, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(1, 2, a, b) === compositeSymbol(1, 2, a, b));
  assert.ok(compositeSymbol(1, 2, a, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(a, a) === compositeSymbol(a, a));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, ['a']));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol() === compositeSymbol());
  assert.ok(compositeSymbol(1, 2) === compositeSymbol(1, 2));
  assert.ok(compositeSymbol(1, 2) !== compositeSymbol(2, 1));
  assert.ok(compositeSymbol('foo', null, true) === compositeSymbol('foo', null, true));
  assert.ok(compositeSymbol('string') === Symbol.for('string'));
});
github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
assert.ok(Object(compositeSymbol({})) instanceof Symbol);

  const a = ['a'];
  const b = ['b'];
  const c = ['c'];

  assert.ok(compositeSymbol(a) === compositeSymbol(a));
  assert.ok(compositeSymbol(a) !== compositeSymbol(['a']));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, 1) === compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a, b) === compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, b) !== compositeSymbol(b, a));
  assert.ok(compositeSymbol(a, b, c) === compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(c, b, a));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c, 1) === compositeSymbol(a, b, c, 1));
  assert.ok(compositeSymbol(1, a) === compositeSymbol(1, a));
  assert.ok(compositeSymbol(1, a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b));
  assert.ok(compositeSymbol(1, a, 2, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(1, 2, a, b) === compositeSymbol(1, 2, a, b));
  assert.ok(compositeSymbol(1, 2, a, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(a, a) === compositeSymbol(a, a));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, ['a']));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol() === compositeSymbol());
  assert.ok(compositeSymbol(1, 2) === compositeSymbol(1, 2));
  assert.ok(compositeSymbol(1, 2) !== compositeSymbol(2, 1));
  assert.ok(compositeSymbol('foo', null, true) === compositeSymbol('foo', null, true));
github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
assert.ok(compositeSymbol(a) === compositeSymbol(a));
  assert.ok(compositeSymbol(a) !== compositeSymbol(['a']));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, 1) === compositeSymbol(a, 1));
  assert.ok(compositeSymbol(a, b) === compositeSymbol(a, b));
  assert.ok(compositeSymbol(a, b) !== compositeSymbol(b, a));
  assert.ok(compositeSymbol(a, b, c) === compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(c, b, a));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c, 1) === compositeSymbol(a, b, c, 1));
  assert.ok(compositeSymbol(1, a) === compositeSymbol(1, a));
  assert.ok(compositeSymbol(1, a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b));
  assert.ok(compositeSymbol(1, a, 2, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(1, 2, a, b) === compositeSymbol(1, 2, a, b));
  assert.ok(compositeSymbol(1, 2, a, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(a, a) === compositeSymbol(a, a));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, ['a']));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol() === compositeSymbol());
  assert.ok(compositeSymbol(1, 2) === compositeSymbol(1, 2));
  assert.ok(compositeSymbol(1, 2) !== compositeSymbol(2, 1));
  assert.ok(compositeSymbol('foo', null, true) === compositeSymbol('foo', null, true));
  assert.ok(compositeSymbol('string') === Symbol.for('string'));
});
github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
assert.ok(compositeSymbol(a, b, c) === compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(c, b, a));
  assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c, 1) === compositeSymbol(a, b, c, 1));
  assert.ok(compositeSymbol(1, a) === compositeSymbol(1, a));
  assert.ok(compositeSymbol(1, a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b));
  assert.ok(compositeSymbol(1, a, 2, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(1, 2, a, b) === compositeSymbol(1, 2, a, b));
  assert.ok(compositeSymbol(1, 2, a, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(a, a) === compositeSymbol(a, a));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, ['a']));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol() === compositeSymbol());
  assert.ok(compositeSymbol(1, 2) === compositeSymbol(1, 2));
  assert.ok(compositeSymbol(1, 2) !== compositeSymbol(2, 1));
  assert.ok(compositeSymbol('foo', null, true) === compositeSymbol('foo', null, true));
  assert.ok(compositeSymbol('string') === Symbol.for('string'));
});
github zloirock / core-js / tests / pure / esnext.composite-symbol.js View on Github external
assert.ok(compositeSymbol(a, b, c) !== compositeSymbol(a, c, b));
  assert.ok(compositeSymbol(a, b, c, 1) !== compositeSymbol(a, b, c));
  assert.ok(compositeSymbol(a, b, c, 1) === compositeSymbol(a, b, c, 1));
  assert.ok(compositeSymbol(1, a) === compositeSymbol(1, a));
  assert.ok(compositeSymbol(1, a) !== compositeSymbol(a, 1));
  assert.ok(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b));
  assert.ok(compositeSymbol(1, a, 2, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(1, 2, a, b) === compositeSymbol(1, 2, a, b));
  assert.ok(compositeSymbol(1, 2, a, b) !== compositeSymbol(1, a, b, 2));
  assert.ok(compositeSymbol(a, a) === compositeSymbol(a, a));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, ['a']));
  assert.ok(compositeSymbol(a, a) !== compositeSymbol(a, b));
  assert.ok(compositeSymbol() === compositeSymbol());
  assert.ok(compositeSymbol(1, 2) === compositeSymbol(1, 2));
  assert.ok(compositeSymbol(1, 2) !== compositeSymbol(2, 1));
  assert.ok(compositeSymbol('foo', null, true) === compositeSymbol('foo', null, true));
  assert.ok(compositeSymbol('string') === Symbol.for('string'));
});