3 var value = require('../../../object/valid-value')
4 , toInteger = require('../../../number/to-integer')
6 , max = Math.max, min = Math.min;
8 module.exports = function (searchString/*, position*/) {
9 var start, self = String(value(this));
10 start = min(max(toInteger(arguments[1]), 0), self.length);
11 return (self.indexOf(searchString, start) === start);