Sha256: b0c2e60381b8855c44d4f468670f28530e69175394b6601cbc2dd59e20b8abe8
Contents?: true
Size: 435 Bytes
Versions: 29
Compression:
Stored size: 435 Bytes
Contents
String.prototype.beginsWith = function(t, i) { if (i == false) { return (t == this.substring(0, t.length)); } else { return (t.toLowerCase() == this.substring(0, t.length).toLowerCase()); } }; String.prototype.endsWith = function(t, i) { if (i == false) { return (t == this.substring(this.length - t.length)); } else { return (t.toLowerCase() == this.substring(this.length - t.length).toLowerCase()); } };
Version data entries
29 entries across 29 versions & 1 rubygems