For everyone who is fucked up with forEach on JSON object.
Find solution in this link
https://codedamn.com/news/javascript/how-to-fix-typeerror-foreach-is-not-a-function-in-javascript
or something like this
var myval = JSON.parse(results);
Object.entries(myval).forEach(entry => {
[key, value] = entry;
console.log(entry);
});
Tidak ada komentar:
Posting Komentar