Tag: Object.keys()

Recent Post

Check if an object is empty in JavaScript

How to check if a JavaScript object is empty despite the absence of a length property.

How to get the length of an object in JavaScript

Unlike arrays and strings, objects don't have a length property to query.

How to iterate through a JavaScript object

JavaScript objects are extremely common, but also notoriously difficult to iterate through.

Convert a JavaScript object to an array with Object.entries()

Easily convert a JS object to an array using the Object.entries() method.