Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #126 from tobie/master

Fix incorrect description of array.length assignment.
  • Loading branch information...
commit 22d72aa794fb2ab8c6cf92c5f7e2a0df7c7bf0e4 2 parents f86154a + 51fc96d
@BonsaiDen authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/en/array/general.md
View
6 doc/en/array/general.md
@@ -45,10 +45,10 @@ elements that are contained in the array, the *setter* can be used to
foo; // [1, 2, 3]
foo.length = 6;
- foo; // [1, 2, 3]
+ foo.push(4);
+ foo; // [1, 2, 3, undefined, undefined, undefined, 4]
-Assigning a smaller length does truncate the array, but increasing the length
-does not have any effect on the array.
+Assigning a smaller length truncates the array. Increasing it creates a sparse array.
### In Conclusion
Please sign in to comment.
Something went wrong with that request. Please try again.