UNPKG

eslint-config-airbnb-standard

Version:

Airbnb's JS ESLint config + JS Standard Style + semicolons

15 lines (12 loc) 271 B
'use strict'; var implementation = require('./implementation'); module.exports = function getPolyfill() { if (String.prototype.matchAll) { try { ''.matchAll(RegExp.prototype); } catch (e) { return String.prototype.matchAll; } } return implementation; };