Skip to main content
Module

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

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

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