function isNumber(str) {
    return Boolean(str && !isNaN(str));
}
Public: test function to filter out malformed packets

Parameters:

  fields - Array of packet data (e.g. [ '100', 'ms', '@0.1' ])

Returns true for a valid packet and false otherwise