mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 22:40:48 -07:00
chore(TypeScript): fix linting and generate .d.ts
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@
|
||||
export function anySeries (iterable, iteratee) {
|
||||
let ret: Promise<any> = Promise.reject(new Error('init'))
|
||||
iterable.forEach(function (item, idx) {
|
||||
ret = ret.catch(e => iteratee(item, idx, iterable))
|
||||
ret = ret.catch(() => iteratee(item, idx, iterable))
|
||||
})
|
||||
return ret
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user