Skip to content

Instantly share code, notes, and snippets.

View gavinlynch's full-sized avatar

Gavin Lynch gavinlynch

View GitHub Profile
/**
* Vue Plugin instance for Validation.
* Use as:
* import Validation from './plugins/validation.js';
* Vue.use(Validation, options);
* Validation.add({
* customValidation: {
* message: 'Message when invalid.',
* comparison: (newer, older) => older === newer,
* validate: function (value) {