SOURCE

Promise.resolve = function (value) {
    if(value instanceof Promise) {
        return value
    }
    return new Promise((resolve) => {
        resolve(value)
    })
}
console 命令行工具 X clear

                    
>
console