Object helper methods

JS
S
JavaScript

A couple of useful functions for JavaScript Objects.

1// Check if the object is empty
2const isMyObjectEmpty = !Object.keys(myObject).length;
3

Created on 5/31/2018