Skip to content

Commit

Permalink
Add fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
billyjanitsch committed Nov 27, 2024
1 parent 0491312 commit 842275c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fixtures/dom-iterable.tsx
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)
}
14 changes: 14 additions & 0 deletions fixtures/es2024.tsx
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'))

0 comments on commit 842275c

Please sign in to comment.