regexp.escape
Version:
A robust ES3-compatible polyfill for the `RegExp.escape` proposal - see https://github.com/tc39/proposal-regex-escaping
20 lines (14 loc) • 437 B
JavaScript
var define = require('define-properties');
var callBind = require('call-bind');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var shim = require('./shim');
var bound = callBind(implementation, null);
define(bound, {
getPolyfill: getPolyfill,
implementation: implementation,
method: implementation, // TODO: remove at semver-major
shim: shim
});
module.exports = bound;
;