1
0

indexes-of.js 396 B

1234567891011121314
  1. 'use strict';
  2. module.exports = {
  3. __generic: function (t, a) {
  4. a.deep(t.call(this, this[1]), [1]);
  5. },
  6. "": function (t, a) {
  7. var x = {};
  8. a.deep(t.call([1, 3, 5, 3, 5], 6), [], "No result");
  9. a.deep(t.call([1, 3, 5, 1, 3, 5, 1], 1), [0, 3, 6], "Some results");
  10. a.deep(t.call([], x), [], "Empty array");
  11. a.deep(t.call([x, 3, {}, x, 3, 5, x], x), [0, 3, 6], "Search for object");
  12. }
  13. };