gpt4 book ai didi

javascript - ES6 是否支持像 { a as a1 } = obj 这样的扩展语法,或者是否有关于它的 RFC?

转载 作者:行者123 更新时间:2023-11-30 11:23:45 24 4
gpt4 key购买 nike

<分区>

考虑下面的片段

const x = {
name: 'somebody'
};

const { name as somePerson } = x; // Would be awesome to have something like this

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com