Harden removeEmptyStrings
removeEmptyStrings
is very commonly used in older store modules, especially for the payload
from a store action. In newer store modules or store module tests, we tend to use dispatch('action')
without a payload, causing it to be null
or undefined
; this is not supported by the helper at all. Additionally, there were no unit tests for this helper.
Edited by Erwan Rouchet