Javascript String first()

Description

Javascript String first()


String.prototype.first = function () {
    return this[0] || null;
};

Javascript String first()

String.prototype.first = function() {
  return this[0];
};



PreviousNext

Related