Use cases
min(1,-1,2,3,4) == -1
max(2,10) == 10
function min() { return $A(arguments).min(); } function max() { return $A(arguments).max(); }
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
You need to create an account or log in to post comments to this site.
» Prototype-based javascript w... in window prototype dimensions js getwindowsize
» Center a DOM element, protot... in prototype node js center
» C macro that implements coun... in c macro count count_if sum max max_elem
» URL parsing Regex in regex js
» Custom Ajax.Request Function in javascript ajax base prototype
» Bind Functions in javascript base prototype
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails