Interface ArrayObject.ArrayFilterCallback

  • Enclosing class:
    ArrayObject

    @JsFunction
    public static interface ArrayObject.ArrayFilterCallback
    Java script FUNCTION callback called to filter the array.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • call

        boolean call​(NativeObject element,
                     int index)
        Method of function to be called to filter the array.
        Parameters:
        element - current element being processed in the array
        index - the index of the current element being processed in the array
        Returns:
        a value that coerces to true to keep the element, or to false otherwise