Published
Edited
Jan 15, 2019
Insert cell
Insert cell
bluebird.some(
[
1,
2,
3,
4,
5,
].map((value, index) => value % 2 === 0 ? Promise.resolve(index) : Promise.reject(index)),
1
).spread(firstMatchingIndex => ({ firstMatchingIndex }))
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more