mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Fixed jsdoc for GetRandom
This commit is contained in:
parent
23ffdf5602
commit
5f02636daa
1 changed files with 6 additions and 2 deletions
|
@ -10,11 +10,15 @@
|
|||
* @function Phaser.Utils.Array.GetRandom
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {array} array - The array to select the random entry from.
|
||||
* @generic T
|
||||
* @genericUse {T[]} - [array]
|
||||
* @genericUse {T} - [$return]
|
||||
*
|
||||
* @param {T[]} array - The array to select the random entry from.
|
||||
* @param {number} [startIndex=0] - An optional start index.
|
||||
* @param {number} [length=array.length] - An optional length, the total number of elements (from the startIndex) to choose from.
|
||||
*
|
||||
* @return {*} A random element from the array, or `null` if no element could be found in the range given.
|
||||
* @return {T} A random element from the array, or `null` if no element could be found in the range given.
|
||||
*/
|
||||
var GetRandom = function (array, startIndex, length)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue