pluginUtils.js 354 B

12345678910111213
  1. /*
  2. Copyright 2018 Google LLC
  3. Use of this source code is governed by an MIT-style
  4. license that can be found in the LICENSE file or at
  5. https://opensource.org/licenses/MIT.
  6. */
  7. import '../_version.js';
  8. export const pluginUtils = {
  9. filter: (plugins, callbackName) => {
  10. return plugins.filter((plugin) => callbackName in plugin);
  11. },
  12. };