Array from args in node.js

Brodie Matthews's icon

Hii, just exploring node atm .Im trying to create an array with array from args in node but i receive an error 'array from args not defined' im using the basics node example with anything.

Support is much appreciated.

Brodie Matthews's icon

Iv passed a list..can i use .splice like "var array1 = array 2.splice(1)" ?

Brodie Matthews's icon

is it possible to 'let x = maxhandler'

Brodie Matthews's icon

or return maxhandler to declare var?

nick rothwell | project cassiel's icon

Do you mean like

maxAPI.addHandler("foo", (...L) => { ... something with list L ...})

?

Brodie Matthews's icon

Nick thanks!! I had to rewatch the workshop, Im still new to js in general.I have to unlearn the stadard js object methods...Thanks again for hosting, I hope there will be more in the future.

nick rothwell | project cassiel's icon

Thanks...! Yes, hoping to keep the Music Hackspace Max workshops going...