From 31ed30923d8f4e79552a5286c9a452fe76406871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Fri, 5 Aug 2022 01:19:36 +0200 Subject: [PATCH] Remove array.includes --- src/ol/array.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ol/array.js b/src/ol/array.js index 518538641c..141dd41a0e 100644 --- a/src/ol/array.js +++ b/src/ol/array.js @@ -49,16 +49,6 @@ export function numberSafeCompareFunction(a, b) { return a > b ? 1 : a < b ? -1 : 0; } -/** - * Whether the array contains the given object. - * @param {Array<*>} arr The array to test for the presence of the element. - * @param {*} obj The object for which to test. - * @return {boolean} The object is in the array. - */ -export function includes(arr, obj) { - return arr.indexOf(obj) >= 0; -} - /** * {@link module:ol/tilegrid/TileGrid~TileGrid#getZForResolution} can use a function * of this type to determine which nearest resolution to use.