Skip to content

Commit fd2766e

Browse files
authored
Merge pull request #121 from approached/main
isNan typo fix
2 parents 5ad236b + a276038 commit fd2766e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/blog/elysia-05.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ app.get('/id/:id', ({ params: { id } }) => id, {
195195
transform({ params }) {
196196
const id = +params.id
197197

198-
if(!Number.isNan(id))
198+
if(!Number.isNaN(id))
199199
params.id = id
200200
}
201201
})

docs/concept/numeric.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ app.get('/id/:id', ({ params: { id } }) => id, {
2929
transform({ params }) {
3030
const id = +params.id
3131

32-
if(!Number.isNan(id))
32+
if(!Number.isNaN(id))
3333
params.id = id
3434
}
3535
})

0 commit comments

Comments
 (0)