Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (21 loc) · 739 Bytes

File metadata and controls

38 lines (21 loc) · 739 Bytes

ascii-ui API documentation > "util/emptyArray"

External module: "util/emptyArray"

Index

Functions


Functions

emptyArray

emptyArray<T>(arr: T[]): T[]

Defined in util/emptyArray.ts:8

Empty an array without having to reassign it with arr = []. It's faster and preserves the same object pointer

Type parameters:

T

Parameters:

Param Type Description
arr T[] Array to empty

Returns: T[] same, modified array arr