* Determines whether a value should be stored in flash messages. * Objects can opt out by setting a STORE_IN_FLASH symbol property to false. * * @param value - Value to check for flash storage eligibility
(value: unknown)
| 180 | * @param value - Value to check for flash storage eligibility |
| 181 | */ |
| 182 | protected shouldFlashValue(value: unknown) { |
| 183 | if (value && typeof value === 'object') { |
| 184 | return STORE_IN_FLASH in value ? value[STORE_IN_FLASH] : true |
| 185 | } |
| 186 | return true |
| 187 | } |
| 188 | |
| 189 | /** |
| 190 | * Filters flash data to only include values that should be flashed. |
no outgoing calls
no test coverage detected