Security update to Drupal 8.4.6
[yaffs-website] / node_modules / underscore.string / startsWith.js
1 var makeString = require('./helper/makeString');
2 var toPositive = require('./helper/toPositive');
3
4 module.exports = function startsWith(str, starts, position) {
5   str = makeString(str);
6   starts = '' + starts;
7   position = position == null ? 0 : Math.min(toPositive(position), str.length);
8   return str.lastIndexOf(starts, position) === position;
9 };