Skip to content

ArrayString

Hyomoto edited this page Nov 29, 2020 · 14 revisions
Jump To Go Back Arguments Methods Variables

ArrayString( array/size, default )

Implements: Array

An Array wrapper specifically for holding and sorting strings.

var _array = new ArrayString( "Hello", "Amanda", "Cars", "Banana" );

_array.sort( true );

show_debug_message( _array );

Arguments

Name Type Purpose
array/size undef {mixed} Either the starting array to use, or the size of the array to create.
default undef {mixed} optional: if provided, will fill the newly created array. Default: undefined

Methods

Jump To top sort

sort( ascending )

Returns: N/A undefined

Name Type Purpose
ascending bool If true, will sort from A-Z, otherwise Z-A

Sorts the array in alphabetical order.


Variables

Jump To top

No variables defined.

Clone this wiki locally