Removes item from a sorted array if it exists, returning the modified array.
let data = [ 1, 2, 3, 4 ];data = remove(data, 3);// [ 1, 2, 4 ] Copy
let data = [ 1, 2, 3, 4 ];data = remove(data, 3);// [ 1, 2, 4 ]
By default uses Javascript comparision semantics. Passing in comparer is needed when working with an array of objects.
comparer
Removes item from a sorted array if it exists, returning the modified array.
By default uses Javascript comparision semantics. Passing in
comparer
is needed when working with an array of objects.