livescript - How to ignore return result -


for example

child.stdout.on \data (buffer) ->     result.stdout += buffer 

-->

child.stdout.on('data', function(buffer){   return result.stdout += buffer; }); 

and need without return. in f# can add |> ignore how can handle in livescript?

you can prepend ! definition of function:

!(buffer) -> result.stdout += buffer 

alternatively, return void

child.stdout.on \data (buffer) ->     result.stdout += buffer    void 

in javascript, when return undefined (void), same not returning anything.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -