Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dallmo_util_array/app.ts>remove_item

deno module, a collection of array util under dallmo-util
Latest
function remove_item
import { remove_item } from "https://deno.land/x/dallmo_util_array@v1.3.0/app.ts";

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