User Tools

Site Tools


Sidebar

array:max

Table of Contents

.max()

Method to get the maximum (numeric) value from an array. This method is equivalent to the function array_max()

Usage

var array = new Array(1, 2, 3, 4, "5");
var highest = array.max();

Parameters

This method has no parameters

Return values

Value Meaning
false There is no number in this array
number The highest number in the array
array/max.txt · Last modified: 2017/05/20 12:51 (external edit)