You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/template/dom-repeat.html
+6-5
Original file line number
Diff line number
Diff line change
@@ -159,11 +159,12 @@
159
159
},
160
160
161
161
/**
162
-
* A function that can be used to filter items out of the view. This
163
-
* property should either be provided as a string, indicating a method
164
-
* name on the element's host, or else be an actual function. The
165
-
* function should match the sort function passed to `Array.filter`.
166
-
* Using a filter function has no effect on the underlying `items` array.
162
+
* `filter`. Specifies a filter callback function, that takes a single
163
+
* argument (the item) and returns true to display the item, false to omit
164
+
* it. Using a filter callback has no effect on the underlying `items`
165
+
* array.
166
+
* (Note that this is **similar** to the standard `Array`
167
+
* [`filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) API, but the callback only takes a single argument.)
0 commit comments