What would be the best way to format this code? It looks a bit messy to me in regards to indentation etc.
if (typeof _srwc != 'undefined') {
for (var i=0; i < _srwc.length; i++){
var currentArg = _srwc[i];;
if (typeof window[currentArg[0]] == 'function') {
window[currentArg[0]](currentArg[1], currentArg[2], currentArg[3]);
} else {
console.log('The Setter method: "' + currentArg[0] + '" is undefined');
}
}
}