1const arr = [14, 58, 20, 77, 66, 82, 42, 67, 42, 4]
2const min = Math.min(...arr)
3console.log(min)
1var arr = ["aaaa", "aa", "aa", "aaaaa", "a", "aaaaaaaa"];
2
3console.log(
4 arr.reduce((a, b) => a.length <= b.length ? a : b)
5)
1var arr = ['cats', 'giants', 'daughters', 'ice'];
2var min = Math.min(...arr.map(({ length }) => length));
3console.log(min);