toolkit.all {shinylight}R Documentation

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

Description

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

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]