Photo by SpaceX on Unsplash

As developers we all know the feeling or fear of being left behind at some point. Every day tens of new technologies (repositories) are trending in github, may be is the next , or frameworkand we like to know more about it.

So what can we do ?
Try to learn as much new we can or give up and stick with the good old tools we already know ?
I believe in being pragmatic, learn what really matters and wait for the right moment.

Don’t follow the hype

Yes, never follow the hype, you don’t need…

If you are learning Javascript or functional programming write your own implementation of a curry could be an interesting way to better understand this technique.

currying is the technique of translating the evaluation of a function that takes multiple arguments(or a tuple of arguments) into evaluating a sequence of functions, each with a single argument. — wikipedia

Let’s think about what we need:
1- A that will receive another to return another that will ask for 1 or more arguments for the original , this should somehow save all the arguments it received while the…

Photo by

Today we are going to talk about these 3 global Objects (functions) in JavaScript and how to use them as factory functions to coerce different values.


You can use Boolean, Number and String as:

Constructor functions (Bad)

If we use them with the new keyword then we will always return an object - not what we expected:


J.C. Martin

Full-Stack Developer: @juliomatcom, Github, Javascript,

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store