This is Akash Mittal, an overall computer scientist. He is in software development from more than 10 years and worked on technologies like ReactJS, React Native, Php, JS, Golang, Java, Android etc. Being a die hard animal lover is the only trait, he is proud of.
In this article we will learn how to remove element from javascript ghost array. I will also show you the way to remove any element from non-ghost arrays. First of…
Are you getting the requirements of converting a javascript array to string without commas? If yes, then this article is for you. Generally when we convert array to string we…
In this article we will show you the code to access javascript random array element, no repeat. Without further delay, let’s check out the code – Tweet this to help…
React-Table is an awesome library for creating tables with multiple headers, sorting, filtering, pagination etc. But it is complex to learn. Sometimes our use case is simple and we do…
(Jump to Code | Demo) Have you seen the chat heads created by facebook messenger? They are stacked over each other and when you drag top one, the other heads…
(Jump to Code | Demo) React component get element by id through reference. Before moving ahead let me inform you that React do not provide any way to access component…
(Jump to Code | Demo) One of the most important feature of Reactjs is its modularity. To make code more readable and maintainable, we break it into reusable components. And…
(Jump to Code | Demo) First of all, we should know what is React wrapper component? Well, its similar to any ordinary component but we define them for special tasks…
To find the longest string in javascript array, we need to loop through all the elements and compare their lengths. The one which has the maximum length is the longest.…
(Jump to Code | Demo) In order to find the duplicates, we need to compare two values. In case of numbers and strings, this is very simple. But when it…
In this article we are going to create a function to remove duplicate elements from javascript array. Our function will be able to handle strings and numbers inside the provided…
When we remove an element from array, a null or undefined remains in its place. One of the option is to use removeNullUndefinedEmptyFromArray() function to clean the array. But if…
There are two ways in which we can force component to re-render in React JS. Generally, we require this when there is change in the list but react fails to…
In this article we are going to learn how to remove null, undefined and empty values from array in Javascript. We get null or undefined values in array when we…
(Jump to Solution | Code | Demo) There are number of situations when you get the warning, “Can’t perform a react state update on an unmounted component“. One thing is…
(Jump to Code | Demo) We can combine and merge two javascript objects using triple dot (…) notation of ES6. This is a very handy feature as it allows to…
(Jump to Code | Demo) When we design an application, we get the requirements to upload images, pdfs, videos and all other sorts of files. We do this using html…
We can use splice() method to move an element of an array from one position to another in javascript. We will use latest coding principles of JS (ES6). Check the…
Php has a date_format() function which can convert the datetime into any custom format. But sadly javascript do not have any such thing. So, we have implemented one for it.…
There are many ways to send data from html form to backend through POST request. Out of them, the primary way is FormData. This is ideal when you have simple…