How to empty an array in JavaScript ?

Javascript on MoreOnFew.com

Arrays are widely and commonly used in JavaScript. Especially if you are developing a dynamic app, there are very high chances that you might use Arrays in JavaScript. However, many a times I’ve noticed that people don’t use the Array related methods properly and end up doing certain things in a wrong way. One such … Read more

How to join or merge an Array in JavaScript?

Javascript on MoreOnFew.com

I’m sure you must have had a scenario where you had to join or merge two different Arrays. Well, let me tell you that its an easy task. However, there are different ways this can be done. Merging multiple arrays using Array.concat() method. JavaScript has a native method Array.concat() which does it. Let’s take a look … Read more