for문이 돌면서 await 문을 실행해야 할때
const promised = resultSearch.map(async (item) =>{ const _quadKey = item.quadKey; const _longitude = item.center[0]; const _latitude = item.center[1]; const _getResponse = await tileQueryApi(_longitude, _latitude); let _saveInfraPoint = 0; _getResponse.data.features.map(item => { const _maki = item.properties.maki; const _mode = item.properties.mode; const _stopType = item.properties.stop_type; ..
프로그래밍/자바스크립트
2022. 2. 18. 15:31