lib/validator.js
function save(val) {
  if(Array.isArray(val)) {
    val.forEach(function(item) {
      var seconds = item[0]
        , changes = item[1];
      if(seconds < 1 || changes < 0) {
        throw new Error('Invalid save parameters');
      }
    })
  }
}
function save(val) {
  if(Array.isArray(val)) {
    val.forEach(function(item) {
      var seconds = item[0]
        , changes = item[1];
      if(seconds < 1 || changes < 0) {
        throw new Error('Invalid save parameters');
      }
    })
  }
}
function save ( val ) { if ( Array . isArray ( val ) ) { val . forEach ( function ( item ) { var seconds = item [ 0 ] , changes = item [ 1 ] ; if ( seconds < 1 || changes < 0 ) { throw new Error ( 'Invalid save parameters' ) ; } } ) } }
Validate a save value.
Validate a save value .