1 var matchAll = require('../string/virtual/match-all');
3 var StringPrototype = String.prototype;
5 module.exports = function (it) {
7 return typeof it === 'string' || it === StringPrototype
8 || (it instanceof String && own === StringPrototype.matchAll) ? matchAll : own;