angry professor javascript

const angryProfessor = (k, a) => a.filter(v => v < 1).length < k ? 'YES' : 'NO'