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

12 lines
185 B
JavaScript
Raw Normal View History

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