Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.2/cloudinary/lib-es5/utils/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.2/cloudinary/lib-es5/utils/ensurePresenceOf.js

"use strict";

/**
 * Validate that the given values are defined
 * @private
 * @param {object} parameters where each key value pair is the name and value of the argument to validate.
 *
 * @example
 *
 *    function foo(bar){
 *      ensurePresenceOf({bar});
 *      // ...
 *    }
 */
function ensurePresenceOf(parameters) {
  var missing = Object.keys(parameters).filter(function (key) {
    return parameters[key] === undefined;
  });
  if (missing.length) {
    console.error(missing.join(',') + " cannot be undefined");
  }
}

module.exports = ensurePresenceOf;

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists