Numeral-js
Numeral-js copied to clipboard
expect null as zero
i got an js error like:
Uncaught TypeError: Cannot read property 'toString' of null
use like this numeral("").divide(100)
so how can i set the value as 0 when is null like
numeral("")
numeral(null)