Skip to main content
Module

x/dallmo_util_math/etc/deps.deno.ts>dallmo_util_array.remove_item

deno module, a collection of math util under dallmo-util
Latest
function dallmo_util_array.remove_item
import { dallmo_util_array } from "https://deno.land/x/dallmo_util_math@v1.2.0/etc/deps.deno.ts";
const { remove_item } = dallmo_util_array;

remove an item from an array

Parameters

input_array: any[]
  • the input array
target_item: any
  • the item to be found

Returns

any[]

return a new array with the found item removed, or the original array if there isn't any