Skip to main content
Home

latest

A collection of utility functions for arrays

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a year ago (0.0.3)

A collection of utility functions for arrays

Examples

Example 1

import { replaceItemAtIndex } from "jsr:@iharuya/array"
const arr = [1, 2, 3, 4, 5]
const newArr = replaceItemAtIndex(arr, 2, 10)
console.log(newArr) // Output: [1, 2, 10, 4, 5]

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@iharuya/array

Import symbol

import * as array from "@iharuya/array";
or

Import directly with a jsr specifier

import * as array from "jsr:@iharuya/array";

Add Package

pnpm i jsr:@iharuya/array
or (using pnpm 10.8 or older)
pnpm dlx jsr add @iharuya/array

Import symbol

import * as array from "@iharuya/array";

Add Package

yarn add jsr:@iharuya/array
or (using Yarn 4.8 or older)
yarn dlx jsr add @iharuya/array

Import symbol

import * as array from "@iharuya/array";

Add Package

vlt install jsr:@iharuya/array

Import symbol

import * as array from "@iharuya/array";

Add Package

npx jsr add @iharuya/array

Import symbol

import * as array from "@iharuya/array";

Add Package

bunx jsr add @iharuya/array

Import symbol

import * as array from "@iharuya/array";