Util
Defaultto

_.defaultTo(value, defaultValue)

Checks value to determine whether a default value should be returned in its place. The defaultValue is returned if value is NaN, null, or undefined.

Arguments

value (*): The value to check.
defaultValue (*): The default value.

Returns

(*): Returns the resolved value.

Example

Deep