본문으로 건너뛰기

Collect()

arguments 를 배열로써 반환합니다.

Signature​

collect: <T>(...args: T[]) => T[]

Parameters​

Parameter

Type

Description

args

T[]

arguments

Returns​

T[]

arguments 를 배열로써 반환합니다.

Example​

collect(1, 2, 3) // [1, 2, 3]