Here I read this:
Since ES2015, JavaScript has the Map object which is an Object on steroid and can easily be used for caching.
Could someone explain what is the meaning of the bold expression?
Here I read this:
Since ES2015, JavaScript has the Map object which is an Object on steroid and can easily be used for caching.
Could someone explain what is the meaning of the bold expression?
The meaning of "on steroids" is: In a very large, enhanced, or exaggerated form.
I assume that you know what "object" means, but just to make sure: A structure that combines data and the procedures necessary to operate on that data.
Thus the expression you are asking about (an object on steroids) would be a very powerful and enhanced object in the JavaScript programming language, you would be able to use it to accomplish many things you can't do with simpler objects.
Additionally, as noted below in the comments, the term Object
with initial capitals, refers to a specific basic type of object, which is the root of all other descendant objects in the Java and JavaScript languages. In the page you linked it talks about the Map
object, which is a different and more powerful type of object than an Object
object. As is explained in the documentation, here.
So in this context, it more specifically means that a Map (object) is like a very powerful and enhanced Object (object).