There is an array of objects with a 'value' field. How to create a new array containing only the numeric values from these objects (excluding strings)? How to do this and how to check if a value is a number?
Frontend
What are generic types in TypeScript? Why use them? Are they a good practice or an anti-pattern?
Знакома ли с типом unknown? Чем он отличается от any?
What approach does React use — imperative or declarative? What is the difference?
In the component, console.log statements are placed in the parent and child components, as well as in useEffect. In what order will they be output and why?
What build tool is used in the project? Have you worked with Webpack?
How to type a function that takes unknown and returns a specific type so that TypeScript always considers the return value to be that type?
What is your experience working with TypeScript? Have you worked with generating type packages?
What anti-patterns in TypeScript do you know?
What is the problem with using enum in TypeScript when compiling to JavaScript? What can replace enum?
What is Virtual DOM? Why is it needed? When is it built? Can there be multiple React instances in one application?
What is a Source Map?
There is an array of numbers, some of which are repeated. How to create a new array without repetitions, preserving the order of numbers? How to solve the problem without using Set?
There is an array of strings representing item numbers of a hierarchical numbered list (e.g., '1', '1.1', '1.2', '1.10', '2', '2.1'). How to sort them correctly using the standard sort function with a callback?
Tell us about yourself and your work experience.
There are two nested blocks A and B with specified sizes. How to position block B exactly at the center of block A? Offer several options, including solutions for older browsers without flexbox support.
What state managers have you used? Why is a state manager needed, and what problem does it solve?
How to avoid unnecessary re-renders of a card list component when an external application periodically updates the data in the storage, and memoizing individual cards is impossible?
Какие utility-типы в TypeScript ты использовала? Знакома ли с ReturnType?
Why is TypeScript needed? What problem does it solve in projects?