@dallmo/util-array@1.3.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
deno module, a collection of array util under dallmo-util
This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
JSR Score
100%
Published
4 weeks ago (1.3.0)
f
add_all
accepts a number array, add them all up and return the sum
f
gen_array_by_range
generate an array of integers with a range defined by start and end
f
insert_item
insert an item into an array with specific position
f
random_index
get a random index of an array
f
random_insert
insert an item into an array with random position
f
random_item
draw an item from an array randomly
f
remove_item
remove an item from an array
f
search
search for given strings in an array with filterref : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
f
test
test connecting to this child module from parent
f
update_item