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

We can use JavaScript matchAll method on any string and it returns all the matching results as an iterator that works easily with for…of loops and has properties like index, input and groups. It will return an empty iterator object if nothing matched. Simple Example As I said before JavaScript matchAll method will return an iterator of

Read More