/
drndsv
/
react
Обзор
Документация
Войти
/
drndsv
/
react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
11 строк
358 B
drndsv
Initial commit
14 апр 2025, 22:53
14 апр 2025, 22:53
641ac8a
Код
Авторство
О чём код?
'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]; };