godjjchrome/js/tmi.js
// Extract a number from a string..
Extract a number from a string
Extract a number from a string
function extractNumber(str) {
		var parts = str.split(" ");
		for (var i = 0; i < parts.length; i++) {
			if (self.isInteger(parts[i])) {
				return ~~parts[i];
			}
		}
		return 0;
	}
function extractNumber ( str ) { var parts = str . split ( " " ) ; for ( var i = 0 ; i < parts . length ; i ++ ) { if ( self . isInteger ( parts [ i ] ) ) { return ~ ~ parts [ i ] ; } } return 0 ; }
Extract a number from a string..
Extract a number from a string ..