External: Array

Array

The built in Array Object
Source:
array.js, line 7
See:

Methods

random(entry) → {any}

return a random array element
Parameters:
Name Type Description
entry array array to pick a element
Source:
array.js, line 36
Returns:
random member of array
Type
any

remove(object)

Remove the specified object from the Array
Parameters:
Name Type Description
object Object to be removed
Source:
array.js, line 21

weightedRandom(entry) → {any}

return a weighted random array element, favoring the earlier entries
Parameters:
Name Type Description
entry array array to pick a element
Source:
array.js, line 47
Returns:
random member of array
Type
any