Comment

Comment by MJSplot_author

But it is also true that:

    let a = {key: 'a'};
    
    function foo( a ) {
      a['otherKey'] = 'b';
    }
    
    foo( a );
    
    console.log( a ); // {key: 'a',otherKey: 'b'}

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton