mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Bump to v3.5.0.
This commit is contained in:
@@ -29,7 +29,11 @@ define(['../internal/baseToString'], function(baseToString) {
|
||||
target = (target + '');
|
||||
|
||||
var length = string.length;
|
||||
position = (typeof position == 'undefined' ? length : nativeMin(position < 0 ? 0 : (+position || 0), length)) - target.length;
|
||||
position = typeof position == 'undefined'
|
||||
? length
|
||||
: nativeMin(position < 0 ? 0 : (+position || 0), length);
|
||||
|
||||
position -= target.length;
|
||||
return position >= 0 && string.indexOf(target, position) == position;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user