any function

  1. @JS()
bool any(
  1. List array,
  2. Function test
)

Checks whether any element of the array passes the test. Function test gets 3 arguments passed:

  • element from the array
  • index of the element
  • reference to the source array

Implementation

@JS()
external bool any(List<dynamic> array, Function test);