[M2-js]Where is all useful function like filter, arrayList, etc?


#1

subj


#2

Hi! We are working on extracting platform independent parts of standard library to be able to reuse it in JavaScript backend but it's not there yet. It is planned for M3.


#3

Out of curiosity, what is the likely timeline for M3 (and beyond if you're willing to share a tentative plan), and what's lined up for M3?


#4

Incidentally you can use things like filter(), arrayList() now using maven; I just mentionted it in this message.

Just make sure you add the kotlin-js-library dependency in the kotlin-maven-plugin in your maven pom.xml - thats the jar that includes the standard kotlin library so it can be compiled to JS code.

Here's an example of it in use: https://github.com/JetBrains/kotlin/blob/master/libraries/examples/browser-example/pom.xml#L31

For more on how the JS generation works see the documentation.


#5

M3 is planned to be out late in August/early in September.