asNumberOrNull

Coerces element to a Double when it wraps a numeric primitive or a numeric-string primitive; null otherwise.

Return

the numeric value as a Double, or null when element is not numeric.

Parameters

element

the value to coerce; may be null.