-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Firefox 18+ supports String#startsWith, String#endsWith
- Loading branch information
Victor Homyakov
committed
Jan 24, 2013
1 parent
4ce0b0f
commit fa1f899
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -878,8 +878,9 @@ Object.extend(String.prototype, (function() { | |
isJSON: isJSON, | ||
evalJSON: NATIVE_JSON_PARSE_SUPPORT ? parseJSON : evalJSON, | ||
include: include, | ||
startsWith: startsWith, | ||
endsWith: endsWith, | ||
// Firefox 18+ supports String.prototype.startsWith, String.prototype.endsWith | ||
startsWith: String.prototype.startsWith || startsWith, | ||
endsWith: String.prototype.endsWith || endsWith, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jdalton
Contributor
|
||
empty: empty, | ||
blank: blank, | ||
interpolate: interpolate | ||
|
Should also be noted that Prototype'sstartsWith
andendsWith
does not align with ES6. It's missing support for theposition
argument.