firstTrue return the return truish value given otherwise false

pull/1061/head
Ryan Tharp 5 years ago
parent 60abea1454
commit adcc1e186a

@ -15,7 +15,7 @@ const firstTrue = ps => {
p =>
new Promise(
// eslint-disable-next-line more/no-then
(resolve, reject) => p.then(v => v && resolve(true), reject)
(resolve, reject) => p.then(v => v && resolve(v), reject)
)
);
// eslint-disable-next-line more/no-then

Loading…
Cancel
Save