mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 02:58:03 -05:00
[docs] Array.from, not Array#from
This commit is contained in:
@@ -355,7 +355,7 @@ Other Style Guides
|
||||
```
|
||||
|
||||
<a name="arrays--from"></a><a name="4.4"></a>
|
||||
- [4.4](#arrays--from) To convert an array-like object to an array, use [Array#from](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/from).
|
||||
- [4.4](#arrays--from) To convert an array-like object to an array, use [Array.from](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/from).
|
||||
|
||||
```javascript
|
||||
const foo = document.querySelectorAll('.foo');
|
||||
|
||||
Reference in New Issue
Block a user