PHP Classes

File: js/findMinimumValue.js

Recommend this page to a friend!
  Classes of bamigboye biodun   Logical Functions   js/findMinimumValue.js   Download  
File: js/findMinimumValue.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Logical Functions
General-purpose PHP and JavaScript functions
Author: By
Last change:
Date: 1 year ago
Size: 443 bytes
 

Contents

Class file image Download
const findMinimumNumber = arrayOfNumbers => { let minNumber = Number.MAX_VALUE; for (let num of arrayOfNumbers) if (num < minNumber) minNumber = num; return minNumber; } //-- Usage findMinimumNumber([1, 5, 7, 10, 12, 5, 23, 29, 22, 20, 18, 7]) // returns 1 /* Author : Biodun Bamigboye This function recieves an array of numbers and returns the Lowest of all the Numbers */