Is there a Collection in Typescript, for example, java?

Asked

Viewed 42 times

1

If it does not exist, why does it not exist since the object orientation in typescript is so 'well structured''?

1 answer

1


Not implemented, but there are extensions like this in the link below:

https://www.npmjs.com/package/typescript-collections

I hope I’ve helped.

  • Could you tell me why you haven’t implemented ?

  • 1

    Typescript nothing more than a High Level Javascript, it will always be transposed in JS . And by doing this you can declare an object array, that one within that array has another object array. But Javascript is evolving, soon will have this structure.

  • 1

    Javascript does not have a specific array data type. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Indexed_collections At this link you will see the type of collections: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Keyed_collections but this extension promises to work transpilar to the collections of the link above.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.