0👍
const newArr = kendaraan.map(item => Object.values(item)[0])
//newArr = [50, 22, 30, 70]
it map function will help you
- [Vuejs]-How to create Vue component with exportable function?
- [Vuejs]-Web component packaging Settings
Source:stackexchange.com