God has an excellent plan for us. We should complain less and believe more. We have no full understanding of how God is architecting our lives now, yet further along, God will make all things…
This article looks to explain what a map is and to go through some of the various methods and properties available when working with maps.
What is a map?
A map is a collection of key:value
pairs that can use any type of data as a key and maintain the order of its entries.
This creates an empty map:
We can also initialise a map with values by passing in an array of arrays.
Adding properties to a map
Looking at the map in the console we see the new values and properties:
This looks similar to an object using string-based keys, but with a map we can use any type of data as a key.
Maps do not allow for the duplicate use of key values. In the following example the string one and the number one get treated as unique keys, but…
Does it seem like Derek Carr should be the highest paid player in the NFL? Carr recently signed a 5-year $125-million extension after a season that saw him emerge as a franchise quarterback before…
Living in a multi-family unit never has its perks. In my building we have a shared laundry room… There’s one washer and 2 dryers for 8 apartments to share. I’m sure the community’s brochure lists…
In the whirlwind of life, so often we get swept up in the business of work. Particularly if you are a manager or view yourself as a leader. In these roles we take on responsibilities beyond our tasks…