I have seen lot of examples in Firefox addon-sdk which uses the below style when declaring a variable.
var { Hotkey } = require("sdk/hotkeys");
What difference it makes with var { Hotkey }
than using var HotKey
? Why the extra flower brackets are used?