]> git.r.bdr.sh - rbdr/dotfiles/blob
3364170f1ec4a917d1662d906c98ce4406214ab3
[rbdr/dotfiles] /
1 'use strict';
2
3 module.exports = {
4 __generic: function (t, a) {
5 a.deep(t.call(this, this[1]), [1]);
6 },
7 "": function (t, a) {
8 var x = {};
9 a.deep(t.call([1, 3, 5, 3, 5], 6), [], "No result");
10 a.deep(t.call([1, 3, 5, 1, 3, 5, 1], 1), [0, 3, 6], "Some results");
11 a.deep(t.call([], x), [], "Empty array");
12 a.deep(t.call([x, 3, {}, x, 3, 5, x], x), [0, 3, 6], "Search for object");
13 }
14 };