Object helper methods
JS
S
JavaScriptA couple of useful functions for JavaScript Objects.
1// Check if the object is empty
2const isMyObjectEmpty = !Object.keys(myObject).length;
3Created on 5/31/2018
A couple of useful functions for JavaScript Objects.
1// Check if the object is empty
2const isMyObjectEmpty = !Object.keys(myObject).length;
3Created on 5/31/2018