Array.prototype.some() Lab
Easy
4
66.7% Acceptance
In this lab, you'll learn how to use Array.prototype.some()
to check if at least one element in an array meets a specific condition. The goal is to create a function checkGreater
that takes an array of numbers and a value, returning true if at least one element of the array is greater than the given value, and false otherwise. Use ESM syntax for importing and exporting the function. This lab uses Node.js 14.x environment and vitest testing library for evaluation.