NodeBuilder.addNumber( val as Number ) as This NodeBuilder object
Add a number node to the node tree the builder is building.
Parameters | |
---|---|
val | The value of the number node. |
const builder = new NodeBuilder(); builder.addNumber(47); builder.toNode(); // Returns a JSON number node containing the value 47