A javascript async-await is syntactical sugar for promises.
Simple Promise Example
Gatchas
.forEach
forEach
results in stange behavior with async await and it is better to just use for .. of
base | 0px |
sm | 480px |
md | 768px |
lg | 992px |
xl | 1280px |
2xl | 1536px |
width | px |
height | px |
Date Created: 2022/02/03 11:54
Last Update: 2022/08/24
A javascript async-await is syntactical sugar for promises.
Simple Promise Example
.forEach
forEach
results in stange behavior with async await and it is better to just use for .. of