Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5de8698

Browse files
committed
provide a radix for parseInt in example
1 parent 9e3fda9 commit 5de8698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ npm install --save postgres-array
1515
```js
1616
var postgresArray = require('postgres-array')
1717

18-
postgresArray.parse('{1,2,3}', parseInt);
18+
postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
1919
//=> [1, 2, 3]
2020
```
2121

0 commit comments

Comments
 (0)