1 var arrayIncludes = require('../array/virtual/includes');
2 var stringIncludes = require('../string/virtual/includes');
4 var ArrayPrototype = Array.prototype;
5 var StringPrototype = String.prototype;
7 module.exports = function (it) {
9 if (it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.includes)) return arrayIncludes;
10 if (typeof it === 'string' || it === StringPrototype || (it instanceof String && own === StringPrototype.includes)) {
11 return stringIncludes;