Check if an Object is empty
JS
S
JavaScriptSimple script (ES5) to check if an object is emtpy
1Object.getOwnPropertyNames({}).length === 0;Created on 9/5/2018
Simple script (ES5) to check if an object is emtpy
1Object.getOwnPropertyNames({}).length === 0;Created on 9/5/2018