From aa2a236d915c01d59e66c443e4c7163545491cb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sat, 21 Mar 2020 13:10:18 +0100 Subject: [PATCH] chg: removed code from Array.contains() method and assigned it to Array.includes() --- modules/core/Array.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/core/Array.js b/modules/core/Array.js index fbaaf3e9..e63c20fe 100644 --- a/modules/core/Array.js +++ b/modules/core/Array.js @@ -28,9 +28,7 @@ * @param {Object} val the value to check * @return {boolean} true if the value is contained */ -Array.prototype.contains = function(val) { - return this.indexOf(val) > -1; -}; +Array.prototype.contains = Array.prototype.includes /** * Retrieve the union set of a bunch of arrays