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

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

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

Parameters

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

Returns

X12Element | null

The new element if successful, or a null if failed.