Nuxt/test/fixtures/module/modules/basic/reverse.js
2017-07-11 13:33:29 +04:30

12 lines
186 B
JavaScript
Executable File

// Simple Nuxt Plugin
import Vue from 'vue'
function $reverseStr (str) {
return str.split('').reverse().join('')
}
Vue.prototype.$reverseStr = $reverseStr
export default undefined