Skip to content

Phil's learning log

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.

  • Blog Feed

Category: JavaScript

JavaScript

Get the min and max value from a JavaScript array

September 6, 2019October 19, 2021 philsellarsLeave a comment

var _array = [10, 30, 2, 7, 90]; Math.max.apply(Math,_array); // 90 Math.min.apply(Math,_array); // 2

Categories

  • JavaScript (1)
  • SQL Database (6)
  • Swift (2)
  • Uncategorized (2)
Website Powered by WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    Phil's learning log

    Have a WordPress.com account? Log in now.

  • Phil's learning log
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar
Create your own website, free on WordPress.com.Create your own website.
Start free