In ES6 you can use spread operator. One string solution:
Math.min(...items)
More Related Contents:
- Sum JavaScript object propertyA values with the same object propertyB in an array of objects
- Group by, and sum, and generate an object for each array in JavaScript
- What does the Array method `reduce` do?
- JavaScript code to fetch range of dates from array of objects depending on one attribute of the array using array.reduce()
- For-each over an array in JavaScript
- Checking if a key exists in a JavaScript object?
- How to find the sum of an array of numbers
- What is the stability of the Array.sort() method in different browsers?
- What is the fastest or most elegant way to compute a set difference using Javascript arrays?
- How to initialize an array’s length in JavaScript?
- Remove last item from array
- Check if object value exists within a Javascript array of objects and if not add a new object to array
- How to get subarray from array?
- How do I remove objects from a JavaScript associative array?
- Filter strings in Array based on content (filter search value)
- How to convert Set to Array?
- Declare an empty two-dimensional array in Javascript?
- Why does Array.apply(null, [args]) act inconsistently when dealing with sparse arrays?
- Extract certain properties from all objects in array
- How to get an array of unique values from an array containing duplicates in JavaScript? [duplicate]
- Sort an array to have specific items first in the array
- Zip arrays in JavaScript?
- Lodash create collection from duplicate object keys
- Getter/setter on javascript array?
- An efficient way to get the difference between two arrays of objects?
- A better way to splice an array into an array in javascript
- Sum values from an array of key-value pairs in JavaScript
- How to sum elements at the same index in array of arrays into a single array?
- Map/Set to maintain unique array of arrays, Javascript
- Group and count values in an array