Skip to content

Commit

Permalink
Исправляет в опечатку в примере "Array(2)" js/array-of (#4811)
Browse files Browse the repository at this point in the history
  • Loading branch information
col3name authored Oct 25, 2023
1 parent 0b709cb commit a369237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/array-of/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tags:
```js
Array.of('🐱', 0b001, document.createElement('div')); // ['🐱', 1, div]
Array.of(3); // [3]
Array(2) // [empty × 3] — массив из трёх пустых элементов
Array(2) // [empty × 2] — массив из двух пустых элементов

// Для строк всё работает одинаково
Array.of('котик') // ['котик']
Expand Down

0 comments on commit a369237

Please sign in to comment.