JS protip: Formatting date/time ranges
Find out how to easily and cleanly format date/time ranges in JavaScript whilst honoring locale preferences, all without resorting to third-party libraries!
You’re looking for good practices, tech novelties that we like or how to use efficiently some tools? You’re at the right place!
You can’t find the subject you’re looking for? Let us know, we’ll be happy to help!
(Also if you read French, we have a lot more content.)
Find out how to easily and cleanly format date/time ranges in JavaScript whilst honoring locale preferences, all without resorting to third-party libraries!
Find out how to easily and cleanly format dates and times in JavaScript whilst honoring locale preferences, all without resorting to third-party libraries!
Check out the many ways — some brand-new! — to grab stuff from the end of an array in JavaScript.
What about an alias that would to the job for you?
You can quickly "update" an old commit thanks to "commit --fixup"
Use "git log -L" to track changes only within a code block, figure out who actually introduced a bug, etc.
Do you think "git blame" is a good idea? You’re wrong!
Easily keep your JS deps in sync with npm-check! So much nicer than npm outdated + update…
You just screwed up your last commit and want to fix it? The "git commit --amend" command is your friend!
The classic Git log (for displaying the commit history) does not fit the standard use case. Rather than using a graphical interface, let’s use an alias and a custom log.
See differences in files, line by line, without any visual pollution
Default values might seem like a simple topic, but JS seized that opportunity to get more powerful ones than most, making it well worth the wait! Read all the juicy bits in this post!