From 57038196a43cfec8bebe815debb8aec3551116c7 Mon Sep 17 00:00:00 2001 From: Josh Ponelat Date: Mon, 19 Jun 2017 18:09:24 +0200 Subject: [PATCH] replace [].find with lodash/find for ie11 --- src/specmap/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/specmap/index.js b/src/specmap/index.js index 2bb9dc693..27bfcdc5d 100644 --- a/src/specmap/index.js +++ b/src/specmap/index.js @@ -1,3 +1,5 @@ +import find from 'lodash/find' + import lib from './lib' import refs from './lib/refs' import allOf from './lib/all-of' @@ -112,7 +114,8 @@ class SpecMap { } nextPlugin() { - return this.wrappedPlugins.find((plugin) => { + // Array.prototype.find doesn't work in IE 11 :( + return find(this.wrappedPlugins, (plugin) => { const mutations = this.getMutationsForPlugin(plugin) return mutations.length > 0 })