Tuesday, 6 June 2017

What is the role of the curly braces when a module is required?

In this code snippet:

const {set} = require("lodash");

What does the {} do ?



via panagdu

No comments:

Post a Comment