const numbers = [1, 2, 3, 4, 5]; const isEven = (num) => num % 2 === 0; console.log(_.any(numbers, isEven)); // Output: true
const people = [{name: 'John'}, {name: 'Jane'}, {name: 'Bob'}]; const hasName = (person) => person.name === 'Bob'; console.log(_.any(people, hasName)); // Output: trueIn this example, 'any' is used with an array of objects representing people. It checks if there is at least one person whose name is 'Bob'. Therefore, we can determine that the package library being used in these examples is Underscore (_) due to the underscore being the prefix used to call the utility function.