/ cloudformation-templates / node_modules / aws-cdk / node_modules / es5-ext / lib / Object / is-empty.js
is-empty.js
1 'use strict'; 2 3 var value = require('./valid-value'); 4 5 module.exports = function (obj) { 6 var i; 7 value(obj); 8 for (i in obj) { 9 if (obj.propertyIsEnumerable(i)) { 10 return false; 11 } 12 } 13 return true; 14 };