1
reputation
1

LivingLife

Just a random profile on the internet!

Always keep your Promises

let safe_division = (x: Promise<number>, y: Promise<number>): Promise<number> => {
return x.then(x_value =>
    y.then(y_value =>
        y_value == 0 ? Promise.reject() : Promise.resolve(x_value / y_value)))
}
  • Member for 2 months
  • 7 profile views
  • Last seen May 21 at 9:41

Keeping a low profile.

This user hasn't posted yet.

Badges (1)

Gold

Silver

Bronze

1

Rarest