code: function(value, defaultValue) {
        var result = value === undefined || value === null ? defaultValue : value;
  
        return result;
      }
docs: Returns the given <code>value</code>, if not null or undefined; otherwise, returns the given <code>defaultValue</code>.