mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 05:08:25 -05:00
add links to resources on mdn
This commit is contained in:
@@ -325,7 +325,7 @@ Other Style Guides
|
||||
```
|
||||
|
||||
<a name="arrays--push"></a><a name="4.2"></a>
|
||||
- [4.2](#arrays--push) Use Array#push instead of direct assignment to add items to an array.
|
||||
- [4.2](#arrays--push) Use [Array#push](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/push) instead of direct assignment to add items to an array.
|
||||
|
||||
```javascript
|
||||
const someStack = [];
|
||||
@@ -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.
|
||||
- [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