Mask
Masks some or all of the letters of the previous value.
- strings - Masks word with the same character
- numbers - does nothing
- boolean - does nothing
Options
character
(string) - Replacing character (default*
).excludeStartCount
(number) - exclude N characters from the beginning.excludeEndCount
(number) - exclude N characters from the end of the string.excludeChars
(array of strings) - exclude the following characters from masking.
Examples
Default options
{ 'firstName': 'John'} => { 'firstName': '****'}