1 var makeString = require('./helper/makeString');
2 var toPositive = require('./helper/toPositive');
4 module.exports = function startsWith(str, starts, position) {
7 position = position == null ? 0 : Math.min(toPositive(position), str.length);
8 return str.lastIndexOf(starts, position) === position;