-
-
Save tomjack/1a5f9767b2733e7a81b8 to your computer and use it in GitHub Desktop.
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
goog.scope = function(fn) { | |
fn.call(goog.global) | |
}; | |
goog.provide("goog.string"); | |
goog.provide("goog.string.Unicode"); | |
goog.string.Unicode = {NBSP:"\u00a0"}; | |
goog.string.startsWith = function(str, prefix) { | |
return str.lastIndexOf(prefix, 0) == 0 | |
}; | |
goog.string.endsWith = function(str, suffix) { | |
var l = str.length - suffix.length; | |
return l >= 0 && str.indexOf(suffix, l) == l | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment