export const getLastStr = (str, type) => {
const arr = str.split('/')
if (type == 'last') {
return arr[1]
} else {
return arr[0]
}
}
export const getLastStr = (str, type) => {
const arr = str.split('/')
if (type == 'last') {
return arr[1]
} else {
return arr[0]
}
}