mapObject function

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

Maps all elements of the object and returns the result. Function f gets 4 arguments passed:

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

Implementation

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