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

x/dallmo_util_array/mod.ts>update_item

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

update a specific item in an array

Parameters

input_array: any[]
  • the input array
item_index: number
  • the array item of this index will be updated
new_item: any
  • update an array item as this

Returns

any[]

return a new array with the specified item updated