New to Kendo UI for jQueryStart a free 30-day trial

Every

methods

Executes a callback function for every single item in the array and returns true or false depending if all the items in the array pass the condition. An equivalent of Array.prototype.every.

Parameters:callbackFunction

The function that will be executed for every item.

Returns:Boolean

—Returns true if all items pass the test function condition. Otherwise, returns false.

<script>
  var arr = new kendo.data.ObservableArray([10, 15, 20, 25, 30]);

  var result = arr.every((item) => {return item > 20})
  var result2 = arr.every((item) => {return item < 40})
  /* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(arr)
  console.log(result)
  console.log(result2)
</script>
Not finding the help you need?
Contact Support