Skip to main content
Module

x/multiarray/MultiArray.d.ts>default

Allow use multiple arrays as one array without create combined one
Latest
class default
import { default } from "https://deno.land/x/multiarray@v0.2.3/MultiArray.d.ts";

Constructors

new
default(...args: ArrayAny<T>[])

Properties

bodyLength: number

Length of MultiArray body, or count of referenced arrays.

length: number

Length of MultiArray, or sum of length from body.

Methods

append(...args: ArrayAny<T>[]): number

Add new body to MultiArray.

concat(other: MultiArray<T>): MultiArray<T>

Concat two MultiArray to get new MultiArray.

find(func: Function): number

Found object from MultiArray by filter and returns its index.

get(index: number): T

Get element from MultiArray.

indexOf(obj: T): number

Found object from MultiArray and returns its index.

remove(index: number): number

Remove body from MultiArray.

toString(): string

Static Methods

isMultiArray(arr: any): boolean

Check the argument is MultiArray or not.