Javascript String beginsWith(t)
/*/*from w w w . j ava 2s . c om*/ * Generic scripts * * @author Rogier van der Linde <rogier@bitmatters.be> */ String.prototype.beginsWith = function(t) { 'use strict'; t = t.toString(); return (t.toString() === this.substring(0, t.length)); };