Skip to content

Commit 079ad8e

Browse files
committed
Fix a typo in README [skip ci]
1 parent 5751514 commit 079ad8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Validation-related methods [`checkValidity()`](https://developer.mozilla.org/en-
255255

256256
### `CbxTree.filter()`
257257

258-
This method can be used to “filter” the tree by hiding those items that don’t meet custom criteria. The method accepts a single argument, a preficate function. The predicate is passed an object argument with item’s `title` and `value` as properties, and the return value must be `true` if the item passes the filter and `false` otherwise. It should be noted that if an item passes the filter, its *descendants* remain visible even if they themselves don’t satisfy the filtering condition.
258+
This method can be used to “filter” the tree by hiding those items that don’t meet custom criteria. The method accepts a single argument, a predicate function. The predicate is passed an object argument with item’s `title` and `value` as properties, and the return value must be `true` if the item passes the filter and `false` otherwise. It should be noted that if an item passes the filter, its *descendants* remain visible even if they themselves don’t satisfy the filtering condition.
259259

260260
```javascript
261261
const readingList = document.querySelector('[name="reading-list[]"]');

0 commit comments

Comments
 (0)