var validate = function( code, check, attributes ) { if ( !check ) { throw createError( code, attributes ); } };