lib/command/database/zset/zadd.js
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var i
    , num;
  if((args.length - 1) % 2 !== 0) {
    throw new CommandArgLength(cmd);
  }

  for(i = 1;i < args.length;i += 2) {
    num = parseFloat('' + args[i]);
    if(isNaN(num)) {
      throw InvalidFloat;
    }
    args[i] = num;
  }
}
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var i
    , num;
  if((args.length - 1) % 2 !== 0) {
    throw new CommandArgLength(cmd);
  }

  for(i = 1;i < args.length;i += 2) {
    num = parseFloat('' + args[i]);
    if(isNaN(num)) {
      throw InvalidFloat;
    }
    args[i] = num;
  }
}
function validate ( cmd , args , info ) { AbstractCommand . prototype . validate . apply ( this , arguments ) ; var i , num ; if ( ( args . length - 1 ) % 2 !== 0 ) { throw new CommandArgLength ( cmd ) ; } for ( i = 1 ; i < args . length ; i += 2 ) { num = parseFloat ( '' + args [ i ] ) ; if ( isNaN ( num ) ) { throw InvalidFloat ; } args [ i ] = num ; } }
Validate the ZADD command.
Validate the ZADD command .