Skip to content

Commit 3f62116

Browse files
committed
Edited ch09.asciidoc with Atlas code editor
1 parent 2fd30bf commit 3f62116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ch09.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ Destructuring is as valuable as the amount of references to host objects it elim
496496

497497
Matches for regular expressions are represented as an array. The matched portion of the input is placed in the first position, while each captured group is placed in subsequent elements in the array. Often, we are interested in specific captures such as the first one.
498498

499-
In the following example, array destructuring helps us omit the whole match and place the `integer` and `fractional` parts of a number into corresponding variables. This way, we avoid resorting to magic numbers pointing at the indices where captured groups will reside at in the match result.
499+
In the following example, array destructuring helps us omit the whole match and place the `integer` and `fractional` parts of a number into corresponding variables. This way, we avoid resorting to magic numbers pointing at the indices where captured groups will reside in the match result.
500500

501501
[source,javascript]
502502
----
@@ -530,7 +530,7 @@ getNumberParts('1234.56')
530530
// <- ['1234', '56']
531531
----
532532

533-
When we need to concatenate lists, we use `.concat` to create a new array. The spread operator improves code readability by making it immediately obvious that we want to create a new collection comprised of each list of inputs, while preserving the ease of adding new elements declaratively in array literals.
533+
When we need to concatenate lists, we use `.concat` to create a new array. The spread operator improves code readability by making it immediately obvious that we want to create a new collection comprising each list of inputs, while preserving the ease of adding new elements declaratively in array literals.
534534

535535
[source,javascript]
536536
----

0 commit comments

Comments
 (0)