canDefault()

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

This function is valid in v2.8.0 to v2.12.0. This function has been downloaded 12 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 requires the following function which is included automatically:

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