.newArray()

Description

Creates a new array with size elements, each initialised to null.

Parameters

  • size — length of the resulting array.

Usage

arr = 5.newArray()
// [null,null,null,null,null]

Last updated

Was this helpful?