source: imaps-frontend/node_modules/string.prototype.matchall/polyfill.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: 271 bytes
Line 
1'use strict';
2
3var implementation = require('./implementation');
4
5module.exports = function getPolyfill() {
6 if (String.prototype.matchAll) {
7 try {
8 ''.matchAll(RegExp.prototype);
9 } catch (e) {
10 return String.prototype.matchAll;
11 }
12 }
13 return implementation;
14};
Note: See TracBrowser for help on using the repository browser.