Skip to main content

Built and signed on GitHub Actions

Works with
This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
•JSR Score100%•
License
MIT
•
Downloads300/wk
•
Published3 days ago (4.4.6)

An array is a collection of values, stored contiguously.

function getPath
getPath(
x: unknown[],
p: number[]
): unknown

Get value at path in a nested array.

Parameters

x: unknown[]

a nested array

path

Return Type

unknown

x[i₀][i₁][...] | [i₀, i₁, ...] = p

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:@nodef/extra-array

Import symbol

import { getPath } from "@nodef/extra-array";
or

Import directly with a jsr specifier

import { getPath } from "jsr:@nodef/extra-array@^4.4.6";