toolkit.any {shinylight}R Documentation

JavaScript function: Finds if a predicate is true for any member of an array or object.

Description

Calls a function for each member of an array or object until either one of them returns true (in which case any returns true) or we run out of elements (in which case any returns false).

Arguments

a

object Object or array to be iterated through.

p

function Function to call with two arguments: the key of the element (or index in the case of an array) and the value; should return a boolean.


[Package shinylight version 1.2 Index]