Update article.md
"an array", "filter out"
This commit is contained in:
parent
32f8f0ec19
commit
eb2b6c9514
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ Previous methods were searching the DOM.
|
|||
|
||||
The [elem.matches(css)](http://dom.spec.whatwg.org/#dom-element-matches) does not look for anything, it merely checks if `elem` matches the given CSS-selector. It returns `true` or `false`.
|
||||
|
||||
The method comes in handy when we are iterating over elements (like in array or something) and trying to filter those that interest us.
|
||||
The method comes in handy when we are iterating over elements (like in an array or something) and trying to filter out those that interest us.
|
||||
|
||||
For instance:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue