Promise.prototype.safe = function(){
return this.then(
res => [null, res],
err = [err, null]
);
}
const [err, res] = await fetch("https://blobk.at/").safe()
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)