Search

Nalezeno "promise": 203

Return a Default Value with Promises Using catch


Last week I tweeted all of you looking for your best JavaScript Array and Promise tricks, and as always, it didn’t disappoint — I learned quite a bit! Today’s JavaScript Promise trick is brought to you by Claudio Semeraro: how to use catch to set a default value instead of...

Break a forEach Loop with JavaScript


I’ve written a number of blog posts about JavaScript tricks: Promise tricks, type conversion tricks, spread tricks, and a host of other JavaScript tricks. I recently ran into another JavaScript trick that blew my mind: how to break a forEach loop. To break the forEach loop at any point,...

21M Bitcoin and the Promise of Scarcity


In Bitcoin, the promise of a limited supply is great. This was one of the biggest things that initially appealed to me when I heard about Bitcoin. “No more than twenty one million bitcoins will ever exist!” But can this promise be kept in the long run? Has the Promise Already Been...

Mining City: A Blueprint for Success?


“Together we grow!” This is the slogan of Mining City, a company with a solid foundation in the cryptocurrency market. Is this catchphrase a real promise, or an overstated declaration? Let’s find out. Brick by Brick Cryptocurrencies are considered by many as the “gold of...

Limit Promise Concurrency with pool


Methods like Promise.all, Promise.allSettled, Promise.race, and the rest are really excellent for managing multiple Promises, allowing for our apps to embrace async and performance. There are times, however, that limiting the number of concurrent operations may be useful, like rate limiting...

Celebrate this Halloween with Spookalicious Casino Games and Get Rewarded


It’s Halloween! Play spooktastic casino games and celebrate this hallowed festival with Bitcoin Games as they promise the most Harrowing Halloween you’d ever experience! Zombies???? Monsters???? Vampires???? Our very own premium casino brand, Bitcoin Games, has launched the Harrowing Halloween????...

The failed promise of Web Components


Lea has some words: Perusing the components on webcomponents.org fills me with anxiety, and I’m perfectly comfortable writing JS — I write JS for a living! What hope do those who can’t write JS have? Using a custom element from the directory often needs to be preceded by a ritual of...

Balancing on a pivot with Flexbox


Let me show you a way I recently discovered to center a bunch of elements around what I call the pivot. I promise you that funky HTML is out of the question and you won’t need to know any bleeding-edge CSS to get the job done. I’m big on word games, so I recently re-imagined the main menu...

Collective #625


The failed promise of Web Components * a11yresources * IconPark * Modfy * Ballpoint * urlcat The post Collective #625 appeared first on Codrops

5 Awesome JavaScript Promise Tricks


The Promise API changed the game in JavaScript. We went from abusing setTimeouts and settling for synchronous operations to doing everything possible to leverage this new async API. Let’s check out a handful of awesome Promise API tricks! Cancel a fetch Request One problem we instantly...

Promise.allSettled


The Promise object has many useful functions like all, resolve, reject, and race — stuff we use all the time. One function that many don’t know about is Promise.allSettled, a function that fires when all promises in an array are settled, regardless of whether any of the promises...

Christophe Cieters: Monopoly Money


As money developed and people opted to place it in secured storage, banks started issuing banknotes which represented a client’s deposit at the bank and the promise to redeem each note for the amount of gold it represented at a 100% reserve rate. Market exchange rates of the coins were...

Ripple Sues Youtube For Allowing Scams That Promised Returns Up to $1 Million


Ripple is suing Youtube, accusing the video platform of not doing enough to eliminate crypto-related “giveaway” scams. The payment network wants to force Youtube to protect its users from such scams. Some scammers promise returns up to 5 million XRP or about $930,000 at current prices...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace