-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplayground.js
More file actions
25 lines (23 loc) · 964 Bytes
/
playground.js
File metadata and controls
25 lines (23 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// const sampleItem = {
// 0: { id: 0, label: 'nr', value: '' },
// 1: { id: 1, label: 'item', value: 'Food' },
// 2: { id: 2, label: 'units', value: 'Vnt.' },
// 3: { id: 3, label: 'quantity', value: '4' },
// 4: { id: 4, label: 'price', value: '32.00' },
// 5: { id: 5, label: 'discount', value: '10' },
// 6: { id: 6, label: 'tax', value: '21' },
// 7: { id: 7, label: 'total', value: '128.00' },
// }
// const otherItem = {
// 0: { id: 0, label: 'nr', value: '' },
// 1: { id: 1, label: 'item', value: 'Food' },
// 2: { id: 2, label: 'units', value: 'Vnt.' },
// 3: { id: 3, label: 'quantity', value: '4' },
// 4: { id: 4, label: 'price', value: '32.00' },
// 5: { id: 5, label: 'discount', value: '10' },
// 6: { id: 6, label: 'tax', value: '21' },
// 7: { id: 7, label: 'total', value: '128.00' },
// }
// const list = [sampleItem, otherItem]
// list[0][1].value = 'hello WOrld'
// // console.log(Object.values(sampleItem))