Skip to content

Instantly share code, notes, and snippets.

View gabriel-munteanu's full-sized avatar

Gabriel Munteanu gabriel-munteanu

View GitHub Profile
belsrc / gist:672b75d1f89a9a5c192c
Last active April 15, 2023 15:13
Simple Vue.js filters that I usually need
* Changes value to past tense.
* Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc.
* @param {String} value The value string.
Vue.filter('past-tense', function(value) {
// Slightly follows
var vowels = ['a', 'e', 'i', 'o', 'u'];