Copy, concat, prepend JavaScript arrays with ES6 spread

JavaScript ES6 (ECMAScript 6) introduced the spread operator. The syntax is three dots followed by the array (or iterable*). It expands the array into individual elements. So, it can be used to expand the array in a places where zero or more elements are expected. Let us use these two arrays for this whole post: … Continue reading Copy, concat, prepend JavaScript arrays with ES6 spread

Data processing using JavaScript built-in methods

Introduction Building UI in the client side using JavaScript involves retrieving JSON data from the server using REST APIs and processing. Similarly, Node.js could retrieve data from a datasource and do some processing. For small scale data processing, JavaScript has very good built-in methods, which are super fun to work with. This article takes an example data and … Continue reading Data processing using JavaScript built-in methods