var _array = [10, 30, 2, 7, 90];
Math.max.apply(Math,_array); // 90
Math.min.apply(Math,_array); // 2
A Senior ASP.NET and SQL Developer with over 10 years experience, designed and developed a critical global production system in the manufacturing industry. Always learning, always logging. Decided to share my logs and generic code snippets from now on to help others, with one mantra – Keep It Simple.
var _array = [10, 30, 2, 7, 90];
Math.max.apply(Math,_array); // 90
Math.min.apply(Math,_array); // 2