Bump to v3.5.0.

This commit is contained in:
jdalton
2015-03-08 18:18:32 -07:00
parent 4881dda9d1
commit 06f6ffa303
29 changed files with 197 additions and 125 deletions

View File

@@ -29,7 +29,11 @@ function endsWith(string, target, position) {
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;
}