wiki/content/20201113105847-array_of.md

210 B

id title
5952e353-e25e-4a74-95ce-8099891212c5 Array.of()

Description

This returns an array of the passed parameters

Syntax

console.log(Array.of(1, 2, 3, 4)) // [1, 2, 3, 4]