clear()
← Back to Module core
Remove all of the elements of an array
clear(arr)
arr
boolean
true
a = [1, 2, 3] clear(a) ' a is: ' array( ' )
Documentation version: 1.1.03. Updated on: 11 February 2026.Dinfio is designed and written by Muhammad Faruq Nuruddinsyah. Copyright © 2014-2026. All rights reserved.