vine.js
/*
Makes sure the params obj has everything that is required
*/
Makes sure the params obj has everything that is required
Makes sure the params obj has everything that is required
function checkRequired(params, required) {
  for (var i in required) {
    var key = required[i];
    if (params[key] === undefined) return false;
  }
  return true;
}
function checkRequired ( params , required ) { for ( var i in required ) { var key = required [ i ] ; if ( params [ key ] === undefined ) return false ; } return true ; }
Makes sure the params obj has everything that is required
Makes sure the params obj has everything that is required