Urara-Blog/node_modules/.pnpm-store/v3/files/6e/12084e2763e52437aa91098235976d3b0be50076d1f6e005069b63a53c9a312431decc9bcdd9a468387b8e502d125b35c75c04d07abd121e5f8e84996d901f
2022-08-14 01:14:53 +08:00

11 lines
358 B
Text

'use strict';
var hasSymbols = require('has-symbols')();
var regexpMatchAll = require('./regexp-matchall');
module.exports = function getRegExpMatchAllPolyfill() {
if (!hasSymbols || typeof Symbol.matchAll !== 'symbol' || typeof RegExp.prototype[Symbol.matchAll] !== 'function') {
return regexpMatchAll;
}
return RegExp.prototype[Symbol.matchAll];
};