Nuxt/test/fixtures/module/modules/basic/reverse.js
2017-05-15 03:03:31 +04:30

12 lines
188 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 $reverseStr