-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require TS 5.7 and update target to ES2024 (#12)
* Require TS 5.7 and update target to ES2024 * Add fixtures
- Loading branch information
1 parent
cc4f7c8
commit 0c27d42
Showing
5 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const formData = new FormData() | ||
formData.set('name', 'Aliza') | ||
|
||
for (const [key, value] of formData) { | ||
console.log(key, value) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
interface Item { | ||
name: string | ||
type: 'fruit' | 'vegetable' | ||
} | ||
|
||
const produce: Item[] = [ | ||
{name: 'apple', type: 'fruit'}, | ||
{name: 'banana', type: 'fruit'}, | ||
{name: 'carrot', type: 'vegetable'}, | ||
] | ||
|
||
const result = Map.groupBy(produce, (item) => item.type) | ||
|
||
console.log(result.get('fruit')) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters