I am checking an Object in console, it is showing as having Array with 2 elements, but on expanding that object the array is shown as empty. How can this happen? Please see the screenshot
Asked
Active
Viewed 38 times
0

Nidhin Joseph
- 9,981
- 4
- 26
- 48

raju
- 6,448
- 24
- 80
- 163
-
2notice `i` at end of console, it's being loaded asynchronously – Code Maniac Sep 19 '19 at 04:58
-
so, what can I do here, it is breaking my logic – raju Sep 19 '19 at 04:59
-
2this doesn't break your code, what breaks you code is if you don't handle asynchronous behavior properly, you can post the relevant code, community people will definitely help you with some answer, – Code Maniac Sep 19 '19 at 05:01