Convert String to number base 10 - Node.js String

Node.js examples for String:Convert

Description

Convert String to number base 10

Demo Code



define([], function(){
    String.prototype.toNumber = function(){
        return parseInt(this,10);
    }/*from  w w w.  j  a  v a  2 s  .  com*/
});

Related Tutorials