Lodash _.defaultTo() Method
Lodash _.defaultTo() method is used to check the given value and determine if a default value should be restored in its place. When the value is NaN, null, or undefined, the value given in the defaultValue parameter is returned. Syntax:_.defaultTo( value, defaultValue );Parameters: value: This param