omitArrayItemconstant

omitArrayItem: <T>(items: PossibleArray<T>, omit: T) => ImmutableArray<T>
Return
unknown
A new array without the omitted item, or the same array if nothing changed.

Remove an item from an array (immutably) and return a new array without that item (or the same array if no changes were made).