async
-
async.apply 로 함수에 parameter 전달dev/web 2019. 4. 2. 15:33
async 호출 외부의 값을 함수 parameter 로 전달할때 async.apply 를 사용 waterfall 의 첫번째 함수에 전달할 파라메터나, 각 함수에 원하는 parameter 를 전달하기가 쉬움 https://caolan.github.io/async/docs.html#apply async - Documentation import applyEach from 'async/applyEach'; Applies the provided arguments to each function in the array, calling callback after all functions have completed. If you only provide the first argument, fns, then it will ..