This commit is contained in:
hatuhn
2019-09-13 09:45:04 +07:00
parent f14a34ba19
commit 558fb07261
16790 changed files with 0 additions and 1642370 deletions

View File

@@ -1,10 +0,0 @@
"use strict";
if (!require("./is-implemented")()) {
Object.defineProperty(String.prototype, "contains", {
value: require("./shim"),
configurable: true,
enumerable: false,
writable: true
});
}

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = require("./is-implemented")() ? String.prototype.contains : require("./shim");

View File

@@ -1,8 +0,0 @@
"use strict";
var str = "razdwatrzy";
module.exports = function () {
if (typeof str.contains !== "function") return false;
return str.contains("dwa") === true && str.contains("foo") === false;
};

View File

@@ -1,7 +0,0 @@
"use strict";
var indexOf = String.prototype.indexOf;
module.exports = function (searchString/*, position*/) {
return indexOf.call(this, searchString, arguments[1]) > -1;
};