Function: isAcceptDisposition()
isAcceptDisposition(
code):boolean
True when the supplied disposition is some form of "accept" (A, E,
P) rather than reject (R, M, W, X). Used by the build-time
safety guard and by consumer code that wants a yes/no on the inbound.
Parameters
code
Returns
boolean
Example
import { isAcceptDisposition } from "@cosyte/x12";
isAcceptDisposition("A"); // true
isAcceptDisposition("R"); // false