サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
世界禁煙デー
dev.to/svehla
Step by step tutorial on how to create a proper type for Object.fromEntries() which can work with tuples and read-only data structures. TLDR: Source code for Object.fromEntries type generic is at bottom of the article. You can copy-paste it into your IDE and play with it. VS-code preview const data = [ ['key1', 'value1' as string], ['key2', 3] ] as const const result = Object.fromEntries(data) As
このページを最初にブックマークしてみませんか?
『dev.to』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く