Oprea.Rocks Logo

Get updates on new articles, and other opportunities

Articles published under the Software Development category

How to check if a JavaScript object is empty

I had the following snippet of code and wanted to log an error only if whatever the block receives is an actual object with actual values. Needed a solution. The code calls a smart contract getter, using Web3.js , retrieves whatever the return value is, and returns its plain text representation…

What do the three dots (...) mean in JavaScript?

The title of the article is from a question I was asked to answer on Quora . Below, is my attempt to explain what do the three dots do in JavaScript. Hopefully, this removes the fog around the concept, for people who will find this article in the future and have the same question. Updates Added…