Blog
Alexey Berezin blog Hi I'm Alexey Berezin, who loves London 🏴, players ⏯ and TypeScript 🦺.
Latest posts A breakdown of the key projects, open-source work, and professional achievements that helped me secure the UK Global Talent visa in tech. This post highlights the impact and leadership demonstrated through real-world engineering initiatives.
Apr 23, 2025 · Alexey Berezin To highlight specifics of working with low-tier devices, to demonstrate its MSE issues and to show how to mitigate them.
Dec 21, 2023 · Alexey Berezin Pros and cons of enums in TypeScript
Sep 10, 2022 · Alexey Berezin Given a string in any case, returns a string in camel case
Jul 14, 2022 · Alexey Berezin
The power of TypeScript will be revealed by the example of several tasks from type-challenges of the hard level.
Dec 10, 2021 · Alexey Berezin Given an object, returns object with all optional fields
Dec 7, 2021 · Alexey Berezin Given a number as string literal type, returns a number as number literal type
Dec 3, 2021 · Alexey Berezin Given a string and a separator, returns an array or a tuple with the substrings between the separator
Nov 29, 2021 · Alexey Berezin Given a tuple and a filter, returns the tuple without elements that are part of the filter
Nov 27, 2021 · Alexey Berezin Given two objects, returns the object which is formed as a spread of two objects in TypeScript
Jul 5, 2021 · Alexey Berezin Given a number as a string, return its absolute value as a string too
Jun 21, 2021 · Alexey Berezin Given a string, return a union of all characters from the string
Jun 19, 2021 · Alexey Berezin We have spread on objects in JavaScript so we can add value by the specified key, let's find out how to do that in TypeScript.
Jun 16, 2021 · Alexey Berezin Given the tuple, make it flatten as Array.prototype.flat when pass Infinity
Jun 13, 2021 · Alexey Berezin Given the string, calculate its length. Also try to find the maximum computable string length having a limit of recursive calls
May 31, 2021 · Alexey Berezin Given a union, return a union of tuples with all possible permutations (all possible positions of elements without repetition)
May 30, 2021 · Alexey Berezin
Given the function and the type, include the type as the following argument in the list of function arguments
May 23, 2021 · Alexey Berezin Given the string, replace all string occurrences with specified string
May 22, 2021 · Alexey Berezin Given the string, replace first string occurrence with specified string
May 17, 2021 · Alexey Berezin Uppercase, Lowercase, Capitalize and Uncapitalize since TypeScript 4.1
May 14, 2021 · Alexey Berezin Given the string, remove whitespaces from the beginning and the end
May 11, 2021 · Alexey Berezin Given the string, remove whitespaces from the beginning
May 10, 2021 · Alexey Berezin Structural type system, workaround in TypeScript, unique symbol and code examples
May 7, 2021 · Alexey Berezin Given a union of several types, remove those types which doesn't extend the specified structure
May 6, 2021 · Alexey Berezin Given the tuple with Promise elements, return Promise of tuple
May 4, 2021 · Alexey Berezin Given the tuple, implement Pop, Shift, Push and Unshift methods like Array.prototype has
May 1, 2021 · Alexey Berezin Given the tuple, return its last element
Apr 29, 2021 · Alexey Berezin Given API, collect the object with keys and values after each call
Apr 28, 2021 · Alexey Berezin
Given the tuple, return a union of tuple elements
Apr 27, 2021 · Alexey Berezin Given the object, return object where all properties on all levels are readonly
Apr 25, 2021 · Alexey Berezin Given the object and a union of properties, return object where those properties are readonly
Apr 23, 2021 · Alexey Berezin Given the object and a union of properties, return the object but without those properties
Apr 21, 2021 · Alexey Berezin Given the function, we need to extract what it returns
Apr 19, 2021 · Alexey Berezin Given the tuple and the type, return true if the type is an element of the tuple. Otherwise, return false
Apr 16, 2021 · Alexey Berezin Given two tuples, put the elements of both of them into the resulting tuple
Apr 15, 2021 · Alexey Berezin Given the boolean, in case of true return first type, otherwise second one
Apr 14, 2021 · Alexey Berezin Given the promise, return the value after applying await recursively
Apr 13, 2021 · Alexey Berezin Given two unions, remove all the elements of the second one from the first union
Apr 12, 2021 · Alexey Berezin Given the tuple, return its length
Apr 9, 2021 · Alexey Berezin Given the tuple, return its first element
Apr 8, 2021 · Alexey Berezin Given the tuple, we need to get object where key and value equals to the elements of the tuple
Apr 7, 2021 · Alexey Berezin Given the object, we need to make properties on the first level readonly
Apr 6, 2021 · Alexey Berezin Given existing type or interface, we need to extract part of properties
Apr 5, 2021 · Alexey Berezin Easy, medium, hard and extreme step by step solutions to type challenges in TypeScript
Apr 4, 2021 · Alexey Berezin Basic implementation of getting a value in an object, optional paths, array and tuples, one solution with connection to JavaScript
Mar 26, 2021 · Alexey Berezin Developed features, team members and collaboration inside the team
Oct 6, 2020 · Alexey Berezin Code obfuscation using confusion and the way how to make it readable again
May 4, 2020 · Alexey Berezin Subtitles with WebVTT, statistics and DRM
Jan 7, 2020 · Alexey Berezin Geolocation identification in iPlayer
Dec 22, 2019 · Alexey Berezin From video tag to the implementation, state machine, the way bundle is loaded, bundle names
Dec 17, 2019 · Alexey Berezin
← Prev ✦ Random Next → Visit ↗ Feed Kagi ↗