Arrays, in and out of the JS object?

y1bel's icon

How?

Most importantly in. If I have what max says is a list, how can I pass it into a function stored in my js object as an array? Especially in cases where the function takes multiple parameters, and the array is not the first parameter?

y1bel's icon

Okay, got it.

In max use a tosymbol on the list.

In your javascript, use a str.split(" ");

Maybe helping future someones.

Emmanuel Jourdan's icon

You should look at the list and anything methods.

y1bel's icon

How can exercise discretion between inlets and message types, for instance if I want to handle a list only coming in on the second inlet?

Ben Bracken's icon

You can use 'this.inlet' property.

-Ben

y1bel's icon

Very cool, thank you!