Sha256: 7085c3bfdfce75492880d420ba56e2669c29512a177a52bb3f5ae2063b90e9e9
Contents?: true
Size: 358 Bytes
Versions: 17
Compression:
Stored size: 358 Bytes
Contents
'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]; };
Version data entries
17 entries across 17 versions & 2 rubygems