这个结构在Javascript中被称为什么

这个结构在Javascript中被称为什么,javascript,Javascript,在此示例代码中: const Button = props => { const { kind, ...other } = props; const className = kind === "primary" ? "PrimaryButton" : "SecondaryButton"; return <button className={className} {...other} />; }; const按钮=道具=>{ const{kind,…other}=道

在此示例代码中:

const Button = props => {
  const { kind, ...other } = props;
  const className = kind === "primary" ? "PrimaryButton" : "SecondaryButton";
  return <button className={className} {...other} />;
};
const按钮=道具=>{
const{kind,…other}=道具;
const className=kind==“primary”?“PrimaryButton”:“SecondaryButton”;
返回;
};
在第二行,Javascript中提到的{}是什么,这样我就可以去查找它并了解它是如何工作的。不幸的是,const的官方文件中没有这样的例子:

这是一个好主意

解构赋值语法是一个JavaScript表达式,它可以将数组中的值或对象中的属性解包为不同的变量

这是一个好主意

解构赋值语法是一个JavaScript表达式,它可以将数组中的值或对象中的属性解包为不同的变量