3 posts tagged in “ES6”

Why you should avoid using ES6 Generators to generate keys in React

JavaScript · React · ES6 · Web Development

A few days back I started reading up on ES6 generators (or generator functions), a new feature that I wanted to learn and understand for quite a while now. In retrospect, it’s not that difficult a concept, but it might take some time getting used to how generators work. As I was reading this fantastic writeup by Arfat Salman (which I suggest reading before going any further), I had an idea…
September 13, 2018
3 min read

Persistent JavaScript storage with CSV

JavaScript · Web Development · ES6 · Node

While most programmers would argue that JSON is the preferred file format to persistently store JavaScript data, there is still value in using other formats to store data. CSV is one of those formats that have been around for a long time and are dead simple to use in most cases. However, while JavaScript provides native methods to serialize and deserialize JSON objects (JSON.stringify() and JSON…
August 20, 2018
4 min read

Copying text to clipboard with JavaScript

JavaScript · Web Development · ES6

In this article, I will be explaining in depth how the _copyToClipboard_ snippet from 30 seconds of code works. You can find the source code for it and a ton of other useful methods in the project’s repository.Core functionalityOne thing that comes up quite often in website building is the ability to copy some text to clipboard, without the user selecting it or hitting the appropriate key…
February 20, 2018
5 min read