Instantly share code, notes, and snippets.
You might want to choose ".value" or ".item" for the passed object, not both :D
Good Catch @Kremnari, fixed it. Thanks a lot!
Named arguments are an interesting pattern. I'm considering using it as part of a "dependency injection" for things like MobX actions.
I have wondered what the performance comparison is vs positional arguments though
Sorry, should've looked first...
Surprisingly, nearly no difference on chrome mobile