Function: results()
results(
msg): readonlyResultRecord[]
Every result (R) record in the message, in wire order.
Parameters
msg
A parsed single-message stream.
Returns
readonly ResultRecord[]
The result records (possibly empty).
Throws
AstmAmbiguousStreamError (ASTM_AMBIGUOUS_MULTI_MESSAGE) when the stream
carries more than one message: see messages.
Example
import { parseAstmRecords, results } from "@cosyte/astm";
const msg = parseAstmRecords("H|\\^&\rR|1|^^^687|28.6|U/L||N||F\rL|1\r");
results(msg)[0]?.units; // "U/L"