Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Narrow type when using "isArray" function #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Array.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ declare namespace SiftArray {

export function insert<T>(array: T[], index: number, ...values: T[]): T[]

export function is(value: any): boolean
export function is(value: any): value is Array<unknown>

export function last<T>(array: T[]): T

Expand Down
Loading