PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/_replacer.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 8 lines | 8 code | 0 blank | 0 comment | 0 complexity | 8a5595a560dd271d420eabc0ea1e0660 MD5 | raw file
1module.exports = function (regExp, replace) {
2  var replacer = replace === Object(replace) ? function (part) {
3    return replace[part];
4  } : replace;
5  return function (it) {
6    return String(it).replace(regExp, replacer);
7  };
8};