Here you can find the source of to_i()
String.prototype.to_i = function () { return parseInt(this.valueOf()); };
String.prototype.to_i = function (){ return parseInt(this); function barInterval (){ if (this.justStarted) { this.justStarted = false; return 0; } else { return this.meter.beat/this.meter.value*noteLength.call(this, 1); ...
String.prototype.to_i = function() { return parseInt(this,10);
String.prototype.to_integer = function(defaultValue) var r = parseInt(this); if (r||r==0) return r; else if(defaultValue||defaultValue==0) return defaultValue; else return null; };