What is `var {comma, separate, list} = name;` in JavaScript?

In the response example, starting from the beginning , there is this code:

var React = require('react-native'); var { AppRegistry, StyleSheet, Text, View, } = React; 

What they say var {...} = thing; ?

+49
javascript ecmascript-6
Oct 18 '15 at 1:47
source share

No one has answered this question yet.

See similar questions:

49
Javascript object binding symbol ({Navigation} =) on the left side of the destination
28
What is this JavaScript syntax: {Ci, CC}?
2
What does ... mean in {a, b, ... others} = myObject?
one
Unusual syntax in JavaScript example: 'var {variable} = value'

or similar:

7287
What does use strict do in JavaScript, and what are the reasons for this?
5101
What is the most efficient way to deeply clone an object in JavaScript?
2743
What is it!! (non) operator in JavaScript?
2050
What is the JavaScript version of sleep ()?
1954
What is the preferred syntax for defining enums in JavaScript?
1850
What is the scope of variables in JavaScript?
1647
What is a "new" keyword in JavaScript?
1535
How to print a number with commas as thousands separators in JavaScript
1498
What is the purpose of the var keyword and when should I use it (or omit it)?
1184
jQuery get specific option tag text



All Articles