code: function checkArray(type, key, value) {
    if (!(value instanceof Array))
      throw ChecktypeError(key, 'Array of ' + type, value);
  
    value.forEach(function (item, i) {
      checkType(type, key + '[' + i + ']', item);
    })
  }
docs: Basic types