The app at my work (React.js) requires me to pass functions around a lot, and often I have to do this: (es6 javascript)
({ ...args }) => this.props.exampleFunc({ newArg, ...args })
Taking a func I had and doing this to inject an argument without calling it. I was reading about closures and I thought that might be what this, but I wasn't sure I fully understood. Is that what this is?
Edit: to clarify, I'm not talking about the arrow, I'm just talking about the trick with the newArg