indicative-compiler › compiler/sanitizer › ArrayWrapper
Wraps an array of SanitizationsRunner and executes them based upon the length of an data array at runtime.
- ArrayWrapper
+ new ArrayWrapper(field
: string, index
: string, childSanitizations
: SanitizationsRunner‹› | ArrayWrapper‹›[], dotPath
: string[]): ArrayWrapper
Parameters:
Name | Type |
---|---|
field |
string |
index |
string |
childSanitizations |
SanitizationsRunner‹› | ArrayWrapper‹›[] |
dotPath |
string[] |
Returns: ArrayWrapper
▸ exec(data
: SanitizationDataRoot, config
: unknown): void
Execute series of sanitizations for values inside an array
Parameters:
Name | Type |
---|---|
data |
SanitizationDataRoot |
config |
unknown |
Returns: void