I'm new to ECMAScript 6, and while trying to learn Ember, I've seen the following code style occassionally:
const {
abc,
def
} = Object;
I've searched Google and many sites explaining the new ES6 specifications. I know this is not the current implementation, because my console gives an error when I input that.
What does this code mean?
UPDATE
I pasted this snippet into Babel's transpiler, and this is what it returned:
"use strict";
var abc = Object.abc;
var def = Object.def;
I'm still confused as to what this is trying to accomplish.
Aucun commentaire:
Enregistrer un commentaire