Javascript: Remove item from array

Date: 2019-01-16
const remove = (arr, item) => {
    const i = arr.indexOf(item);
    if (i >= 0) arr.splice(i, 1);
};

17490cookie-checkJavascript: Remove item from array