added missing closing tag for code snippet (#25673)
This commit is contained in:
committed by
Paul Gamble
parent
b8654ccba4
commit
3d694d7ffd
@ -148,6 +148,7 @@ array = [1, 2, 3, 4, 5]
|
|||||||
=> [1, 2, 3, 4, 5]
|
=> [1, 2, 3, 4, 5]
|
||||||
array.include?(3)
|
array.include?(3)
|
||||||
=> true
|
=> true
|
||||||
|
```
|
||||||
|
|
||||||
#### .flatten
|
#### .flatten
|
||||||
The flatten method can be used to take an array that contains nested arrays and create a one-dimensional array:
|
The flatten method can be used to take an array that contains nested arrays and create a one-dimensional array:
|
||||||
|
Reference in New Issue
Block a user