2 * Generic utilities module with methods that can be helpful at different parts of the code base.
3 * @module xterm/utils/Generic
8 * Return if the given array contains the given element
9 * @param {Array} array The array to search for the given element.
10 * @param {Object} el The element to look for into the array
12 export function contains(arr: any[], el: any) {
13 return arr.indexOf(el) >= 0;