Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / instance / replace-all.js
1 var replaceAll = require('../string/virtual/replace-all');
2
3 var StringPrototype = String.prototype;
4
5 module.exports = function (it) {
6   var own = it.replaceAll;
7   return typeof it === 'string' || it === StringPrototype
8     || (it instanceof String && own === StringPrototype.replaceAll) ? replaceAll : own;
9 };