chrome 中方法 Promise.prototype.chain 的特征

the feature of method Promise.prototype.chain in chrome

chrome 浏览器中名为 Promise.prototype.chain 的方法。 我找不到有关此方法的任何文档。 有人知道吗?

顺便说一句,我可以在浏览器中找到 google chrome 的所有方法的文档吗?

注意:现在 .chain 只是 then 的一个已弃用的别名。


chain 所做的基本上就是 then 所做的,除了不展开承诺。 Chain 是一个合适的 "monadic flatMap" 而不是 then,它会自动解包承诺。

在邮件列表和 TC 会议上讨论了 at great lengths。决定反对。

.chain 只是 Chrome 中的遗物,它 可能 会在未来的版本中出现,但目前没有人支持提案包括它。我不会在生产中使用它。