source: imaps-frontend/node_modules/string.prototype.matchall/polyfill-regexp-matchall.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 358 bytes
Line 
1'use strict';
2
3var hasSymbols = require('has-symbols')();
4var regexpMatchAll = require('./regexp-matchall');
5
6module.exports = function getRegExpMatchAllPolyfill() {
7 if (!hasSymbols || typeof Symbol.matchAll !== 'symbol' || typeof RegExp.prototype[Symbol.matchAll] !== 'function') {
8 return regexpMatchAll;
9 }
10 return RegExp.prototype[Symbol.matchAll];
11};
Note: See TracBrowser for help on using the repository browser.