chg: removed code from Array.contains() method and assigned it to Array.includes()

This commit is contained in:
Tobi Schäfer 2020-03-21 13:10:18 +01:00
parent 90e91ee9f7
commit aa2a236d91

View file

@ -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