public static function getDistinctElements(arr:Array, sort:Boolean = false, sortDescending:Boolean = false):Array
A static method that extracts distinct elements of an Array. This method also provides additional parameters
to specify whether resulting array should be sorted descendingly or ascendingly.
Parameters
| arr:Array — An Array instance from which to extract distinct elements.
|
| |
| sort:Boolean (default = false) — A flag whether resulting array should be sorted.
|
| |
| sortDescending:Boolean (default = false) — A flag whether resulting array should be sorted in a descending way.
|
Returns