Array from args in node.js

    Javascriptresolved

    Brodie Matthews
    Jun 17 2020 | 2:52 pm
    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
      Brodie Matthews
      Jun 17 2020 | 4:33 pm
      Iv passed a list..can i use .splice like "var array1 = array 2.splice(1)" ?
      Share
    • Brodie Matthews's icon
      Brodie Matthews's icon
      Brodie Matthews
      Jun 17 2020 | 4:49 pm
      is it possible to 'let x = maxhandler'
    • Brodie Matthews's icon
      Brodie Matthews's icon
      Brodie Matthews
      Jun 17 2020 | 4:59 pm
      or return maxhandler to declare var?
    • nick rothwell | project cassiel's icon
      nick rothwell | project cassiel's icon
      nick rothwell | project cassiel
      Jun 18 2020 | 2:47 pm
      Do you mean like maxAPI.addHandler("foo", (...L) => { ... something with list L ...})
      ?
    • Brodie Matthews's icon
      Brodie Matthews's icon
      Brodie Matthews
      Jun 18 2020 | 3:59 pm
      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
      nick rothwell | project cassiel's icon
      nick rothwell | project cassiel
      Jun 18 2020 | 4:18 pm
      Thanks...! Yes, hoping to keep the Music Hackspace Max workshops going...