import { removeIndexFromArray } from "./removeIndexFromArray" ; example returns { Array } export function removeItemFromArray < A extends any [ ] > ( array , item ) { const index = array . indexOf ( item ) ; return removeIndexFromArray ( array , index ) ; }