setTimeoutのPromiseラッパー
const wait = ms => () => new Promise(resolve => setTimeout(() => resolve(ms), ms))