ArrayClear

Clear all items from array

Method Signature

ArrayClear(array=[modifiableArray])

Arguments

Argument
Type
Required
Description
Default

array

modifiableArray

true

The array to clear.

Examples

Clear the value of an array

Uses the arrayClear function to clear the value of an array

Run Example

someArray = [ 
	"Red",
	"White",
	"Green",
	"Blue",
	"Pink"
];
writeOutput(
// Transpiler workaround for BIF return type
(( arg1 ) => {
	arrayClear( arg1 );
	return true;
})( someArray ) );

Result: Yes

Clear the value of an array

To clear the value of an array

Run Example

Result: true

Clear value of an array using member function

Uses the member function is the same as running arrayClear.

Run Example

Result: Yes

Additional Examples

Run Example

Last updated

Was this helpful?