* Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor * * @returns {void}
(fn)
| 61 | * @returns {void} |
| 62 | */ |
| 63 | forEach(fn) { |
| 64 | utils.forEach(this.handlers, function forEachHandler(h) { |
| 65 | if (h !== null) { |
| 66 | fn(h); |
| 67 | } |
| 68 | }); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | export default InterceptorManager; |