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

Filter

methods

Executes a callback function for every single item in the array and returns only those items that pass the filter condition. An equivalent of Array.prototype.filter.

Parameters:callbackFunction

The function that will be executed for every item.

Returns:Array

—A new array with items that pass the filter condition.

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

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