@n3okill/utils
Version:
Many javascript helpers
13 lines • 391 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.contains = contains;
/**
* Check if array contains the item
* @param arr The array to search
* @param item The item to be searched
* @returns Return `true` if the array contains the item
*/
function contains(arr = [], item) {
return arr.indexOf(item) !== -1;
}
//# sourceMappingURL=contains.js.map
;