dictionary.forEach(this.someMethod);
Instead, this is apparently what passes for sane in JS world, in 2017: for (var key in dictionary) {
if (dictionary.hasOwnProperty(key) {
this.someMethod(key, dictionary[key]);
}
}
Don't contact me for cryptocurrency or adtech jobs, please.