filterObject function

  1. @JS()
dynamic filterObject(
  1. Object object,
  2. Function test
)

Filters properties of the object using a test function. Function test 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 filterObject(Object object, Function test);