---
title: "TK (@teekay) | Hashnode"
description: "TK (@teekay) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@teekay"
---

@teekay

# TK

@teekay · Joined December 2019

[Website](http://leandrotk.github.io/tk)

### [Revisiting Conditionals in JavaScript and TypeScript](https://tk.hashnode.dev/revisiting-conditionals-in-javascript-and-typescript?utm_source=hashnode&utm_medium=feed)

The original post was published at iamtk.co. This post is part of the Mastering JavaScript Series. We are going to see different ways we can handle conditions in JavaScript and how TypeScript can help us make better use of code. Imagine we have a boo...

4 min read · [tk.hashnode.dev](https://tk.hashnode.dev/revisiting-conditionals-in-javascript-and-typescript?utm_source=hashnode&utm_medium=feed)

[Jan 10, 2022](https://hashnode.com/posts/revisiting-conditionals-in-javascript-and-typescript/61dc2c4ecda0d0294b69b27f)

### [How I received 4 salary raises in 2 years as a Software Engineer](https://tk.hashnode.dev/how-i-received-4-salary-raises-in-2-years-as-a-software-engineer?utm_source=hashnode&utm_medium=feed)

Or a better title would be: "how to be a Rebel at Work and keep improving the craft". The original post was published at iamtk.co. Disclaimer: these ideas and insights come from a privileged person working in a very privileged industry. my intent i...

22 min read · [tk.hashnode.dev](https://tk.hashnode.dev/how-i-received-4-salary-raises-in-2-years-as-a-software-engineer?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/how-i-received-4-salary-raises-in-2-years-as-a-software-engineer/61ca6be15e8b9423aa068350) [Dec 28, 2021](https://hashnode.com/posts/how-i-received-4-salary-raises-in-2-years-as-a-software-engineer/61ca6be15e8b9423aa068350)

### [A Mental Model to think in Typescript](https://tk.hashnode.dev/a-mental-model-to-think-in-typescript?utm_source=hashnode&utm_medium=feed)

This post was originally published at TK's blog. One day I came across a tweet from Lari Mazza that says "Can I make a suggestion? Types are hard to understand when you’ve only worked with JS in your life and suddenly have to learn TypeScript" As ...

45 min read · [tk.hashnode.dev](https://tk.hashnode.dev/a-mental-model-to-think-in-typescript?utm_source=hashnode&utm_medium=feed)

[Jul 20, 2020](https://hashnode.com/posts/a-mental-model-to-think-in-typescript/5f158da3e37a46613e6fe21b)

### [Algorithms Problem Solving: Running Array Sum](https://tk.hashnode.dev/algorithms-problem-solving-running-array-sum?utm_source=hashnode&utm_medium=feed)

This post is part of the Algorithms Problem Solving series. Problem description This is the Running Array Sum problem. The description looks like this: Given an array nums. We define a running sum of an array as runningSum\[i\] = sum(nums\[0\]…nums\[i\]). ...

1 min read · [tk.hashnode.dev](https://tk.hashnode.dev/algorithms-problem-solving-running-array-sum?utm_source=hashnode&utm_medium=feed)

[Jun 24, 2020](https://hashnode.com/posts/algorithms-problem-solving-running-array-sum/5ef33cc268cfae448c055086)

### [Algorithms Problem Solving: Sort the Matrix Diagonally](https://tk.hashnode.dev/algorithms-problem-solving-sort-the-matrix-diagonally?utm_source=hashnode&utm_medium=feed)

This post is part of the Algorithms Problem Solving series. Problem description This is the Sort the Matrix Diagonally problem. The description looks like this: Given a m \* n matrix mat of integers, sort it diagonally in ascending order from the top-...

[tk.hashnode.dev](https://tk.hashnode.dev/algorithms-problem-solving-sort-the-matrix-diagonally?utm_source=hashnode&utm_medium=feed)

[Jun 22, 2020](https://hashnode.com/posts/algorithms-problem-solving-sort-the-matrix-diagonally/5ef0bbf72fb6648468edfff5)
