エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Object.assign vs Object Spread in Node.js
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Object.assign vs Object Spread in Node.js
The Object Rest/Spread Proposal reached stage 4 in 2018, which means it will be included in a fut... The Object Rest/Spread Proposal reached stage 4 in 2018, which means it will be included in a future iteration of the ECMAScript spec. It's also been included in Node.js LTS since Node.js 8, so you can safely start using it today. $ node -v v8.9.4 $ node > const obj = { foo: 1, bar: 1 }; undefined > { ...obj, baz: 1 }; { foo: 1, bar: 1, baz: 1 }The Object spread operator {...obj} is similar to Obj