Forums > Javascript

Arrays, in and out of the JS object?

August 14, 2013 | 5:07 pm


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?

August 14, 2013 | 5:26 pm

Okay, got it.

In max use a tosymbol on the list.

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

Maybe helping future someones.

August 18, 2013 | 2:21 am

You should look at the list and anything methods.

August 29, 2013 | 4:03 pm

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?

August 29, 2013 | 5:02 pm

You can use ‘this.inlet’ property.


September 6, 2013 | 4:48 am

Very cool, thank you!

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > Javascript