1 var replaceAll = require('../string/virtual/replace-all');
3 var StringPrototype = String.prototype;
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;