SnipBits

How to check if an object is empty in JavaScript

September 27, 2020Javascript 1 Min Read

The javascript Objects are compared by reference, that's why we cannot do a comparaison like this The Solution is to pass the built-in…

How to Sort an array in Javascript

September 13, 2020Javascript 1 Min Read

One of the Classic Tasks in a Life of a Developer is to sort something . Lets begin with the first Example , if you want to sort an array…

How to test if a string includes a substring in Javascript

August 18, 2020Javascript 1 Min Read

There is too many ways to check if a Javascript string contains a substring. Its nowadays one of the most common tasks in any Programming…

How to test if a value is a number in JavaScript

July 22, 2020Javascript 1 Min Read

There is many ways to check if a value is a number. The first is . The function determines whether a value is or not. If returns false…

How to detect Network Status in Javascript

July 13, 2020Javascript 1 Min Read

returns the online status of the browser. The Property returns a Boolean Value, mean that you are online and mean that you are offline…

How to Remove Duplicates from array in Javascript

June 10, 2020Javascript 1 Min Read

There is many ways to remove duplicates from an array in Javascript. I think that the simplest approach is to use Object, which lets you…

JavaScript map() Method

June 01, 2020Javascript 1 Min Read

there is more than one technique to iterate through datasets in Javascript. One of the popular methods is the method. the method creates…