Constructors
constructor
- new Pair<K, V>(key: K, value?: null | V): Pair<K, V>
Type parameters
Parameters
key: K
Optional value: null | V
Returns Pair<K, V>
Properties
Readonly [NODE_TYPE]
[NODE_TYPE]: symbol
key
key: K
Optional srcToken
value
value: null | V
Methods
clone
Parameters
Returns Pair<K, V>
toJSON
- toJSON(_?: unknown, ctx?: ToJSContext): MapLike
Parameters
Optional _: unknown
Optional ctx: ToJSContext
Returns MapLike
toString
- toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string
Parameters
Optional ctx: StringifyContext
Optional onComment: () => void
Optional onChompKeep: () => void
Returns string
Always Node or null when parsed, but can be set to anything.