Skip to content

INotationOptions

Defined in: src/core/INotationOptions.ts:4

Represents Notation options.

optional strict?: boolean

Defined in: src/core/INotationOptions.ts:15

Whether to throw either when a notation path does not exist on the source (i.e. #get() and #remove() methods); or notation path exists but overwriting is disabled (i.e. #set() method). (Note that .inspectGet() and .inspectRemove() methods are exceptions). It’s recommended to set this to true and prevent silent failures if you’re working with sensitive data. Regardless of strict option, it will always throw on invalid notation syntax or other crucial failures.

false

optional preserveIndices?: boolean

Defined in: src/core/INotationOptions.ts:21

Whether to preserve indices when an item is REMOVED from an array source. This will produce sparse-arrays if enabled.

false