Interface ArrayObject.ArrayFindCallback

  • Enclosing class:
    ArrayObject

    @JsFunction
    public static interface ArrayObject.ArrayFindCallback
    Java script FUNCTION callback called to find an element in the array.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • call

        boolean call​(NativeObject element,
                     int index)
        Method of function to be called to find an element in the array.
        Parameters:
        element - current element being processed in the array
        index - the index of the current element being processed in the array
        Returns:
        the value of the first element in the array that satisfies the provided testing function.
        Otherwise, undefined is returned.