UNPKG

string.prototype.matchall

Version:

Spec-compliant polyfill for String.prototype.matchAll

14 lines (9 loc) 261 B
'use strict'; var matchAllShim = require('../'); var regexMatchAll = require('../regexp-matchall'); var test = require('tape'); var runTests = require('./tests'); test('as a function', function (t) { runTests(matchAllShim, regexMatchAll, t); t.end(); });