(and maybe a little arguments + destructuring, too)
why iterate manually...for-of handles this for us!
You can create custom iterators
configureServer( "196.168.0.1", "8787", true, true );
configureServer({
server: "196.168.0.1",
port: "8787",
enableCache: true,
logFailures: true
});
function configureServer( options ) {
options.port = options.port || "8888";
// both setting defaults and having to
// use dot notation off of options
}