Core Docs | Additional Modules Docs

Array.prototype.range


@Description: Determines the range of values in a numeric array. That is the highest value minus the loweest value
@File: Array/prototype/range.js
@Author: Paul Visco
@Version: 1.1 11/19/07
@Return: Number The range of the values
@Example:
var myArray = [1,10,2,3,4,5];
var answer = myArray.range();
//answer = 9; //<--the difference between 10 (the highest number) and 1 (the lowest number)