Keyboard Shortcuts for Jumping and Deleting in iTerm2
How to configure familiar keyboard shortcuts for common navigation and edit actions in the iTerm2 command prompt, such as jumping to the start or end of a word or line.
How to configure familiar keyboard shortcuts for common navigation and edit actions in the iTerm2 command prompt, such as jumping to the start or end of a word or line.
TypeScript 3.7 implemented support for assertion functions in the type system. An assertion function is a function that throws an error if something unexpected happened. Using assertion signatures, we can tell TypeScript that a function should be treated as an assertion function.
TypeScript 3.7 added support for the ?.
operator, also known as the optional chaining operator. We can use this operator to descend into an object whose properties potentially hold the values null
or undefined
without writing any null checks for intermediate properties.
Git 1.7.12 introduced the --root
flag for the rebase
command that lets you rewrite all the history leading to a specific commit down to the root commit.
TypeScript 3.7 added support for the ??
operator, which is known as the nullish coalescing operator. We can use this operator to provide a fallback value for a value that might be null
or undefined
.
Different approaches for declaring a global variable in TypeScript.
In JavaScript, there are different approaches to concatenating multiple arrays into a single one. A comparison of push()
, concat()
, and spread syntax.
TypeScript 3.5 added an Omit<T, K>
helper type which lets us create an object type that omits specific properties from another object type.
In this post, I want to introduce you to ripgrep, a smart and fast command line search tool that I find myself using all the time when programming.
With TypeScript 3.4, const
assertions were added to the language. A const
assertion is a special kind of type assertion in which the const
keyword is used instead of a type name.