JavaScript , , , 0 Comments

In this article, we will learn the new well-formed JSON stringify JavaScript method introduced in ES10/2019 with examples and comparisons with the old one. RFC 8259 section 8.1 requires JSON text exchanged outside the scope of a closed ecosystem to be encoded using UTF-8, but JSON.stringify can return strings including code points that have no representation in UTF-8

Read More

JavaScript , , , 0 Comments

In this article, we are gonna talk about JavaScript fromEntries method. fromEntries introduced inĀ ES10/2019 and it is an object method, we will cover basics and different types of examples. Let’s start, Object.fromEntries is a very useful built-in JavaScript method that transforms a list of key-value pairs into an object. Let’s see the quick basic example

Read More