Array.prototype.max >= 0.1.2

Purpose

Get the highest value inside the array

Syntax

Array#max ( );


Return values

Number

Examples

Return the highest value in the array

var arr = [0, 1, 2, 3, -1, 60, 20];

arr.max();>>> 60