regexTester.js 236 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
'use strict';

var GetIntrinsic = require('../GetIntrinsic');

var $test = GetIntrinsic('RegExp.prototype.test');

var callBind = require('./callBind');

module.exports = function regexTester(regex) {
	return callBind($test, regex);
};