June 2017
Beginner
330 pages
7h 30m
English
Similarly, you can see all of the values with the values method:
people.values
Running this code will give the following output:
[32, 27, 10, 29, 42]
Note that both the keys and values hash methods return the elements as an array. So if you want to store all the keys or all the values in an array, this is a great way of doing it.
Read now
Unlock full access