objectApply function

  1. @JS()
dynamic objectApply(
  1. dynamic object,
  2. Function f
)

Applies a function f to all properties of an object. Function f gets 3 arguments passed:

  • element from the object
  • key of the element
  • reference to the object

Implementation

@JS()
external objectApply(dynamic object, Function f);