Function clear()

← Back to Module core



Module core → clear()

Description

Remove all of the elements of an array

clear(arr)


Parameters


Return Value


Usage Example

a = [1, 2, 3]
clear(a)
 
' a is:
' array(
' )