Posts by Samim

Author Biographical Info: Not available

Replace an object in an array with another object in JavaScript

By Samim

In this tutorial, I will show how you can replace an object in an array with another object in JavaScript. Here are some methods below to replace an object in an array with another.... Read More

Merge or flatten an array of arrays in JavaScript

By Samim

In this tutorial, I will saw you how to merge or flatten an array of arrays. An array of arrays basically means an array that contains multiple arrays. These are some methods below.... Read More

Separate characters, special characters and numbers from a string in JavaScript

By Samim

In this tutorial, We will see how to separate characters, special characters and numbers from a string in JavaScript. We can use regular expressions for this purpose. Using match().... Read More

Declare optional function parameters in JavaScript

By Samim

In this tutorial, we will learn how to declare optional function parameters in JavaScript during defining the function. The optional function parameters can be defined by assigning.... Read More

Format numbers as currency strings in JavaScript

By Samim

In this tutorial, I will show you how to format numbers as currency strings in JavaScript. The currency strings represent numbers in a specific currency format. The currency symbol.... Read More

Extend an existing JavaScript array with another array, without creating a new array

By Samim

This tutorial will show you how to extend an existing array with another array, without creating a new array in JavaScript. We can extend an existing array with another array in mu.... Read More

Check if a variable is an array in JavaScript

By Samim

This tutorial will show you how you can check if a variable is an array or not in JavaScript. For this purpose, we will use Array.isArray method and instanceof operator. Using Arra.... Read More

Find object by key-value pair in an array of objects in JavaScript

By Samim

This tutorial will show you how you can find objects by id in an array of objects in JavaScript. We will use the Array.prototype.find() method and for loop to find the object. Usin.... Read More

Related Posts