UNPKG

322 BJavaScriptView Raw
1export function iterateObserversSafely(observers, method, argument) {
2 var observersWithMethod = [];
3 observers.forEach(function (obs) { return obs[method] && observersWithMethod.push(obs); });
4 observersWithMethod.forEach(function (obs) { return obs[method](argument); });
5}
6//# sourceMappingURL=iteration.js.map
\No newline at end of file