Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/x12/src/X12Segment.ts>X12Segment#valueOf

ASC X12 parser, generator, query engine, and mapper; now with support for streams.
Latest
method X12Segment.prototype.valueOf
import { X12Segment } from "https://deno.land/x/x12@1.8.0-1/src/X12Segment.ts";

Parameters

segmentPosition: number
  • A 1-based number indicating the position in the segment.
optional
defaultValue: string

Returns

string | null

If no element is at this position, null or the default value will be returned.