Constructors
constructor
- new Pair<K, V>(key, value?): Pair<K, V>
Parameters
- key: K
Optionalvalue: null | V
Properties
Readonly[NODE_TYPE]
[NODE_TYPE]: symbol
key
OptionalsrcToken
value
Methods
clone
- clone(schema?): Pair<K, V>
toJSON
- toJSON(_?, ctx?): MapLike
Parameters
Optional_: unknownOptionalctx: ToJSContext
Returns MapLike
toString
- toString(ctx?, onComment?, onChompKeep?): string
Parameters
Optionalctx: StringifyContextOptionalonComment: (() => void)OptionalonChompKeep: (() => void)
Returns string
Always Node or null when parsed, but can be set to anything.