@MereMala
Solving everyday problem by code
Nothing here yet.
Nothing here yet.
Hey Yogesh Chavan Good tips thanks. By the way, I can add my two cents to your article. In getting the last element of the array section, in the first example arr.slice(-1) will return [50] not the value 50 . For checking if it is an array I guess we can also use below code const isArray = Object .prototype.toString.call(arr) == "[object Array]"