1 var baseClamp = require(
'./_baseClamp'),
2 baseToString = require(
'./_baseToString'),
3 toInteger = require(
'./toInteger'),
4 toString = require(
'./toString');
29 function startsWith(
string, target, position) {
30 string = toString(
string);
31 position = position == null
33 : baseClamp(toInteger(position), 0,
string.length);
35 target = baseToString(target);
36 return string.slice(position, position + target.length) == target;
39 module.exports = startsWith;