3 ms·
> it is the wrong place to put the count information. I'd argue this is the case regardless of lifetime. It's trying to squash two unrelated things into one o
by Izkata 2y ago
> it is the wrong place to put the count information.
I'd argue this is the case regardless of lifetime. It's trying to squash two unrelated things into one object and should have been two different arguments.
Way more obvious if "obj" is replaced with some example object instead of an empty one:
let person = { name: "Foo Bar", age: 30, counter: counter };