yuuka_maniaの日記: Typescript 分割代入
日記 by
yuuka_mania
Typescript で、オブジェクトの一部分だけを抜きだす書き方があるんだが、どういう機能名なのかわからないまま使ってたけど、気が向いたので、調べたらどうも、分割代入みたいな言い方するっぽいことがわかった。スッキリ。
英語だと、Object Destructuring, Property Shorthand とか?
ref.
https://stackoverflow.com/questions/17781472/how-to-get-a-subset-of-a-javascript-objects-properties
オブジェクトの分割代入 (destructuring assignment)
ref.
https://typescriptbook.jp/reference/values-types-variables/object/destructuring-assignment-from-objects
Typescript 分割代入 More ログイン