I want to convert
console.log({
  a: 'a'
}, {
  b: 'b'
});
into CoffeeScript. The only way I found is
console.log
  a: 'a',
    b: 'b'
It seems bizarre that a: 'a' and b: 'b' are not indented the same when they are essentially symetric in this situation.
Put the comma one in a separated line, one indentation level less than the hash/object, so it's treated as part of the function invocation.
console.log
   a: 'a'
, # indentation level matters!
   b: 'b'
this will not work because the indentation level is the same as hash, so it's treated as part of the hash.
console.log
   a: 'a'
   ,
   b: 'b'
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With