Created
January 5, 2020 08:49
-
-
Save moshiurse/b6cceded311837eb2c95aab3f9c6aa9a to your computer and use it in GitHub Desktop.
Add Data to multidimensional array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var i = 0; i < rows.length; i++) { | |
item_id[i] = rows[i].book_id; | |
item_name[i] = rows[i].bookname; | |
item_quantity[i] = rows[i].item_quantity; | |
item_rate[i] = rows[i].item_rate; | |
item_price[i] = rows[i].itemcost; | |
strickerArray.push({'id': item_id[i], 'name': item_name[i], 'price': item_rate[i]}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment