Array.clear()

From ZCubes Wiki
Revision as of 12:34, 4 February 2020 by Joseph (talk | contribs) (→‎Array.clear(FillWith))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Array.clear(FillWith)

Clear each element in the array, and replace it with undefined (or FillWith if provided). Original array is affected.

1..10.clear()

undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined

1..10.clear(34)

34
34
34
34
34
34
34
34
34
34