moringaman
11/22/2018 - 8:10 PM

get filename from filepath in js

const path = '/erer/ererer/erere/vue-min.js'
const split = path.split('/').splice('-1' )[0]