canDefault()

Determines whether or not a value would be defaulted to another value.

This function is valid in v2.8.0 to v2.23.0. This function has been downloaded 29 times.

Parameters

{*} value
Value to test out.
{boolean=} opt_beStrict Optional, Default:false
Specifies whether or not to only check if value is undefined.

Returns

{boolean}
If opt_beStrict is true-ish and value is undefined, true will be returned. If opt_beStrict is false-ish and value is undefined, null or NaN, true will be returned. In all other cases false will be returned.

Required Function

This function directly requires the following function which is included automatically:

  • defaultTo()
    Defaults specific non-values to another given value.

Requiring Function

This function is directly required by the following function:

  • defaultTo()
    Defaults specific non-values to another given value.