检查是否为 Promise
值
isPromise(function(){}); /// falseisPromise(async function(){}); /// falseisPromise(new Promise((resolve, reject) => resolve())); /// true Copy
isPromise(function(){}); /// falseisPromise(async function(){}); /// falseisPromise(new Promise((resolve, reject) => resolve())); /// true
检查是否为 Promise