Skip to main content
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
82%
Published
a month ago (0.1.0)
function joinArr
joinArr(
arr: any[],
betweenValue: any,
): any[]

insert a value between each value in an array

Parameters

arr: any[]

array to join

betweenValue: any

a value to join between each value in the array

Return Type

any[]

a new array with the betweenValue between each value in the original array

Add Package

deno add @debbl/utils

Import symbol

import { joinArr } from "@debbl/utils";

---- OR ----

Import directly with a jsr specifier

import { joinArr } from "jsr:@debbl/utils";

Add Package

npx jsr add @debbl/utils

Import symbol

import { joinArr } from "@debbl/utils";

Add Package

yarn dlx jsr add @debbl/utils

Import symbol

import { joinArr } from "@debbl/utils";

Add Package

pnpm dlx jsr add @debbl/utils

Import symbol

import { joinArr } from "@debbl/utils";

Add Package

bunx jsr add @debbl/utils

Import symbol

import { joinArr } from "@debbl/utils";