September 25, 2023

Snippets

Nextjs custom config setup with scss

Next Js is a very powerful react framework that lets you render React on the server side. Next Js comes with a lot…

How to pretty print JSON in react?

In React for printing JSON in a pretty format is not that straight forward as angular. In angular, we can use JSON pipe…

How to check the Javascript object is empty or not?

In Javascript, there is no straight forward way to check javascript object is empty or not. Like var str1 = ''; if(!str1){ //…

How to iterate through object in javascript?

If you are a javascript developer, you need to deal with javascript objects every day. Javascript object has a large use case but…