UNPKG

d2-ui

Version:
17 lines (16 loc) 495 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = arrayContains; /** * Check if an array contains a specified item * * @param {Array} array The array to check for the item * @param {*} item The item to look for in the array * @returns {boolean} Returns true when the item is found, otherwise false */ function arrayContains(array, item) { return Array.prototype.indexOf.call(array, item) !== -1; } //# sourceMappingURL=arrayContains.js.map