JavaScript: The Definitive Guide

24.117. Math.min( ): return the smallest argument

ECMAScript v1; enhanced in ECMAScript v3

24.117.1. Synopsis

Math.min(args...)

24.117.1.1. Arguments

args...

Any number of arguments. Prior to ECMAScript v3, this function expects exactly two arguments.

24.117.1.2. Returns

The smallest of the specified arguments. Returns Infinity if there are no arguments. Returns NaN if any argument is NaN or is a nonnumeric value that cannot be converted to a number.

Категории