Y
Y
yativ_sobb2021-06-06 14:06:47
JavaScript
yativ_sobb, 2021-06-06 14:06:47

Is there an analogue of generic types in javascript?

What is the analogue of generic types in js?

I installed the jest-mock-extended library and there it is

mockDeep<>();


How can I use for clean js too?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2021-06-06
@abberati

js is dynamically typed. Roughly speaking, in it all types are generalized. The above example uses typescript language syntax. This is a different language, it has those same generic types

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question