removeItem
Removes an item from a source array.
API
function removeItem<Source>(array: Source[], item: Source): Source[];
Usage
import { removeItem } from "@feedzai/js-utilities";
const DATA = [
"Homer",
"Marge",
"Lisa",
"Bart",
"Maggie"
];
const SORTED = removeItem("Marge");
console.log(SORTED) // ["Homer","Lisa","Bart","Maggie"];