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 62
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 73
Returns:
random member of array
Type
any
Copyright © 2011 - 2017, Olivier Biot, Jason Oster, Aaron McLeod
Documentation generated by JSDoc 3.4.0 on 2017-02-28T11:37:40+08:00 using the DocStrap template modified by codename-.