text: import { STRICT } from '../helpers/constants';
  
  import Symbol from 'core-js-pure/features/symbol';
  import filterReject from 'core-js-pure/features/array/filter-reject';
  
  QUnit.test('Array#filterReject', assert => {
    assert.isFunction(filterReject);
    let array = [1];
    const context = {};
    filterReject(array, function (value, key, that) {
      assert.same(arguments.length, 3, 'correct number of callback arguments');
      assert.same(value, 1, 'correct value in callback');
      assert.same(key, 0, 'correct index in callback');
      assert.same(that, array, 'correct link to array in callback');
      assert.same(this, context, 'correct callback context');
    }, context);
    assert.deepEqual([1, 2, 3, 4, 5], filterReject([1, 2, 3, 'q', {}, 4, true, 5], it => typeof it !== 'number'));
    if (STRICT) {
      assert.throws(() => filterReject(null, () => { /* empty */ }), TypeError);
      assert.throws(() => filterReject(undefined, () => { /* empty */ }), TypeError);
    }
    array = [];
    // eslint-disable-next-line object-shorthand -- constructor
    array.constructor = { [Symbol.species]: function () {
      return { foo: 1 };
    } };
    assert.same(filterReject(array, Boolean).foo, 1, '@@species');
  });
  