summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/test/array/#/indexes-of.js
blob: 3364170f1ec4a917d1662d906c98ce4406214ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

module.exports = {
	__generic: function (t, a) {
		a.deep(t.call(this, this[1]), [1]);
	},
	"": function (t, a) {
		var x = {};
		a.deep(t.call([1, 3, 5, 3, 5], 6), [], "No result");
		a.deep(t.call([1, 3, 5, 1, 3, 5, 1], 1), [0, 3, 6], "Some results");
		a.deep(t.call([], x), [], "Empty array");
		a.deep(t.call([x, 3, {}, x, 3, 5, x], x), [0, 3, 6], "Search for object");
	}
};