Skip to content

Commit

Permalink
Update api-sanitization-chain.md
Browse files Browse the repository at this point in the history
fixed typo in line 115, changed 'bar to 'bar'
  • Loading branch information
ankushknr19 committed Dec 19, 2022
1 parent f68baf4 commit 43141ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-sanitization-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Converts the value to an array. `undefined` will result in an empty array.

```js
app.post('/', [body('checkboxes').toArray()], (req, res, next) => {
// ['foo', 'bar] => ['foo', 'bar']
// ['foo', 'bar'] => ['foo', 'bar']
// 'foo' => ['foo']
// undefined => []
console.log(req.body.checkboxes);
Expand Down

0 comments on commit 43141ed

Please sign in to comment.