docs(regex): edit y flag

This commit is contained in:
ruanyf
2017-12-29 15:55:22 +08:00
parent 488983f6d4
commit 1ff6639dfa
2 changed files with 2 additions and 24 deletions
+2 -2
View File
@@ -346,8 +346,8 @@ let arr2 = Array.from(arrayLike); // ['a', 'b', 'c']
```javascript
// NodeList对象
let ps = document.querySelectorAll('p');
Array.from(ps).forEach(function (p) {
console.log(p);
Array.from(ps).filter(p => {
return p.textContent.length > 100;
});
// arguments对象