Update article.md
Fixed wording since "may not" means "prohibited"
This commit is contained in:
parent
13da056653
commit
33e25dce1e
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ When we use JavaScript for practical tasks in a browser or any other environment
|
||||||
|
|
||||||
For instance, strings are both iterable (`for..of` works on them) and array-like (they have numeric indexes and `length`).
|
For instance, strings are both iterable (`for..of` works on them) and array-like (they have numeric indexes and `length`).
|
||||||
|
|
||||||
But an iterable may not be array-like. And vice versa an array-like may not be iterable.
|
But an iterable may be not array-like. And vice versa an array-like may be not iterable.
|
||||||
|
|
||||||
For example, the `range` in the example above is iterable, but not array-like, because it does not have indexed properties and `length`.
|
For example, the `range` in the example above is iterable, but not array-like, because it does not have indexed properties and `length`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue