Contact: aviboots(AT)netvision.net.il
40,849 questions
53,254 answers
573 users
const arr: number[] = [1, 3, 16, 9, 2, 8, 5, 4]; const max: number = Math.max(...arr.slice(1, 5)); // [3, 16, 9, 2] console.log(max); const min: number = Math.min(...arr.slice(1, 5)); console.log(min); /* run: 16 2 */