safer-promise
Social Media Photo by freestocks.org on Unsplash
A Promise that cannot be observed, with resolve
and reject
methods able to secure other promises too.
// once imported; // even nasty operations like this would not interfereconst then = Promiseprototype;Object;Object;Object; // try it to believe it; // or even with native promises, i.e.;
Compatibility
The compatibility bar here is defined by a native Symbol.species
entity, meaning that every ES2015 engine should work as expected.
This module is specially handy to secure advanced modern features so that old browsers will never be a target goal.