all

Checks if all of the elements in the given array match the given predicate

Arguments

  • array - The array to check
  • predicate(element, index) - The predicate to check against

Example

{
  "$template": {
	"$comment": "The field below will be false",
	"test": "{{[1, 2, 3, 5, 8, 10].all(x => x > 5)}}"
  }
}