When reading through the documentation for an NPM package, I came across the following code:
const {OperationHelper} = require('apac');
This object was then used later like so:
const opHelper = new OperationHelper({..})
I'm unfamiliar with the {OperationHelper}
assignment - a variable name inside a pair of braces. I actually didn't even think this was valid syntax. What is this called and how does it work?