I can't seem to find anything in the documentation to understand why the {
and }
characters are wrapped around variables on some examples I've seen. Can anyone example why we would do that?
For example:
const {app} = require('./app/app.js');
I can't seem to find anything in the documentation to understand why the {
and }
characters are wrapped around variables on some examples I've seen. Can anyone example why we would do that?
For example:
const {app} = require('./app/app.js');