Is there a way to get prime numbers in one line I was given a task to get the largest prime number in an array in one line is that even possible?!
Given an array of numbers. Create a function which returns the largest prime number. (NOTE*,
it should be written only 1 line of code). (2)
let arr1 = [1,5,7,6,9,10,13,11,12]
function largestPrime(arr) {
// write your code here... }
}