Archived
1
0
This repository has been archived on 2023-05-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
home-page/node_modules/es5-ext/test/array/#/contains.js
Sean Edmunds 0584430b5c First commit
2021-12-13 17:00:40 -06:00

22 lines
545 B
JavaScript

"use strict";
module.exports = {
"__generic": function (t, a) {
a(t.call(this, this[1]), true, "Contains");
a(t.call(this, {}), false, "Does Not contain");
},
"": function (t, a) {
var o, x = {}, y = {};
o = [1, "raz", x];
a(t.call(o, 1), true, "First");
a(t.call(o, "1"), false, "Type coercion");
a(t.call(o, "raz"), true, "Primitive");
a(t.call(o, "foo"), false, "Primitive not found");
a(t.call(o, x), true, "Object found");
a(t.call(o, y), false, "Object not found");
a(t.call(o, 1, 1), false, "Position");
}
};