code: function isLodashPluginWithSemanticUiReact(plugin) {
      if (Array.isArray(plugin)) {
          // Babel 6 plugin is a tuple as an array [id, options]
          return (
              ["lodash", "babel-plugin-lodash"].includes(plugin[0].key) &&
              [].concat(plugin[1].id).includes("semantic-ui-react")
          );
      } else if (plugin != null && typeof plugin === "object") {
        // Babel 7 plugin is an object { key, options, ... }
          return (
              /[/\\]node_modules([/\\].*)?[/\\]babel-plugin-lodash([/\\].*)?$/.test(plugin.key) &&
              plugin.options &&
              plugin.options.id &&
              [].concat(plugin.options.id).includes("semantic-ui-react")
          );
      } else {
          return false;
      }
  }
docs: Checks if a babel configuration object matches a lodash plugin with semantic-ui-react in its id option.
  @param plugin A plugin config obtained from babel's state