I have recently come across this line of code.
const { Bar, Data: { Selectors } } = require('some-module');
Can someone please tell me what does Data: { Selectors }
do in this piece of code? I understand that it is importing some module in my codebase, just confused about the {Selectors}
part.
Also, if I want to write it using import
syntax what would be the equivalent code for the same?
e.g : import Bar from "some-module"