checkParams = config => {
  const DEFAULT_GUTTER = 25;
  const booleanProps = ["useTransform", "center"];


  if (!config) {
    throw new Error("No config object has been provided.");
  }

  for(let prop of booleanProps){
    if(typeof config[prop] !== "boolean"){
      config[prop] = true;
    }
  }


  if(typeof config.gutter !== "number"){
    config.gutter = DEFAULT_GUTTER;
  }

  if (!config.container) error("container");
  if (!config.items && !config.static) error("items or static");
}
Validates the configuration object.

@param config - configuration object