const getSmallest = (arr) => arr.reduce((smallest, num) => Math.min(smallest, num)); const arr = [13, 7, 11, 3, 9, 15, 17]; console.log(getSmallest(arr)); // 3