Kyle Simpson Tutorials
Don't worry, this is not YAMA (yet another monad article)! Instead, I want to talk about a library I've recently released that offers a helpful twist on typical functional programming ("FP") operations (like
compose(..), etc). Before we jump in: if you're like me and have tried...
TL;DR Use the FeatureTests.io service to perform feature tests of ES6+ features. The results of these tests are cached by default in the user's browser, and shared across all sites the user visits that use this service. In the bootstrapper for your site/app, check the results of...
TL;DR Your complaints of
x == ybehaviors being weird, buggy, or downright broken have all blamed
==as the culprit. No, it's really not.
==is pretty helpful, actually. The problems you're having are not with the
==operator itself, but with the underlying values and how...
letenables a new form of scoping not previously accessible generally to JS developers: block scoping. Function Scope Let's briefly review the basics...
stringvalues have a
replace(..)method available to them. This method allows you to pass a regular expression (or a
bwould, obviously, be:
concat(..)The most common approach is: As you can see...
Now that you've seen ES6 generators and are more comfortable with them, it's time to really put them to use for improving our real-world code. The main strength of generators is that they provide a single-threaded, synchronous-looking code style, while allowing you to hide the...