What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-24 08:53:03
Number.prototype.between = function(a, b) { var min = Math.min.apply(Math, [a, b]), max = Math.max.apply(Math, [a, b]); return this > min && this < max; };
//get min/max value of arrays function getArrayMax(array){ return Math.max.apply(null, array); } function getArrayMin(array){ return Math.min.apply(null, array); } var ages=[11, 54, 32, 92]; var maxAge=getArrayMax(ages); //92 var minAge=get... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5