feige
2025-06-03 49f6412aefc2fc62d519d94131fc003a9e1dda93
1
2
3
4
export function removeFromArray(arr, elem) {
  const idx = arr.indexOf(elem)
  if (idx !== -1) arr.splice(idx, 1)
}