Javascript String hasNumbers()

Description

Javascript String hasNumbers()


String.prototype.hasNumbers = function()
{
    var regex = /\d/g;
    return regex.test(this);
};



PreviousNext

Related