code: function cleanOptions(options) {
          Object.keys(options).filter(function (key) { return options[key] === undefined; }).forEach(function (key) { return delete options[key]; });
      }
docs: Remove undefined fields from an object
  
  @param options An object to clean