for (var key in object.flags ) { var property = object.flags[key]; if (typeof property == 'function' && key != 'set') { property(); } }