Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Clean up language in the array section.

  • Loading branch information...
commit 1246d87583bf590b3c412095b368a3248f27d214 1 parent 9e3e756
Michael C. Harris authored

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +6 6 doc/en/array/constructor.md
12 doc/en/array/constructor.md
Source Rendered
@@ -21,15 +21,15 @@ the actual indexes of the array will not be initialized.
21 21 arr[1]; // undefined
22 22 1 in arr; // false, the index was not set
23 23
24   -The behavior of being able to set the length of the array upfront only comes in
25   -handy in a few cases, like repeating a string, in which it avoids the use of a
26   -`for loop` code.
  24 +Being able to set the length of the array in advance is only useful in a few
  25 +cases, like repeating a string, in which it avoids the use of a `for loop`
  26 +code.
27 27
28 28 new Array(count + 1).join(stringToRepeat);
29 29
30 30 ### In Conclusion
31 31
32   -The use of the `Array` constructor should be avoided as much as possible.
33   -Literals are definitely preferred. They are shorter and have a clearer syntax;
34   -therefore, they also increase the readability of the code.
  32 +The use of the `Array` constructor should be avoided. Literals are definitely
  33 +preferred. They are shorter, have a clearer syntax, and increase code
  34 +readability.
35 35

0 comments on commit 1246d87

Please sign in to comment.
Something went wrong with that request. Please try again.