From 42ae08b6a376ba62ae5b4ee03dc0a8e126f4d591 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 7 Mar 2016 17:16:34 +0200 Subject: [PATCH] Remove string.contains --- client/js/libs/string.contains.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 client/js/libs/string.contains.js diff --git a/client/js/libs/string.contains.js b/client/js/libs/string.contains.js deleted file mode 100644 index ea1dde83..00000000 --- a/client/js/libs/string.contains.js +++ /dev/null @@ -1,18 +0,0 @@ -// -// Check if string contains any of the supplied words. -// -// Usage: -// "".contains(a, b, ...); -// -// Returns [true|false] -// -String.prototype.contains = function() { - var args = arguments; - for (var i in args) { - var str = args[i]; - if (typeof str === "string" && this.indexOf(str) > -1) { - return true; - } - } - return false; -}