ForEach method

bool ForEach(
  1. bool step(
    1. dynamic element
    )
)

Implementation

bool ForEach(bool Function(dynamic element) step) {
  for(var i = 0; i<this.length; i++) {
    if(step(this[i]) == false)
      return false;
  }

  return true;
}