parsing digits from serial

gh0stless's icon

I need to parse data from the serial port. There are several numbers in ASCII, seperatet by space that can have a different number of digits. How to do it elegantly in JavaScript?