arrRemove.js 184 B

1234567
  1. export function arrRemove(arr, item) {
  2. if (arr) {
  3. const index = arr.indexOf(item);
  4. 0 <= index && arr.splice(index, 1);
  5. }
  6. }
  7. //# sourceMappingURL=arrRemove.js.map