Nuxt/test/fixtures/module/modules/basic/reverse.js

12 lines
186 B
JavaScript
Raw Normal View History

2017-05-14 22:33:31 +00:00
// Simple Nuxt Plugin
import Vue from 'vue'
function $reverseStr (str) {
return str.split('').reverse().join('')
}
Vue.prototype.$reverseStr = $reverseStr
2017-07-11 09:03:29 +00:00
export default undefined