Skip to content

Commit f117d21

Browse files
committed
🦄: update readme
1 parent a1b9897 commit f117d21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ reverse(set); //=> Set { 3, 4, 5 }
8888

8989
## options
9090

91-
`options` is the second parameter to the function call and it is an object with two available properties...
91+
`options` is the second parameter to the function call and it is an object with two available properties. It can also take in a falsy value which would implicity get converted to an empty object.
9292

9393
### `invert: {String}`
9494

@@ -120,7 +120,7 @@ reverse(/*...*/, {
120120

121121
### `preserveZeros: {Boolean}`
122122

123-
This property defaults to `false`. It specifies whether to enforce preceding zeros in the result of a number that contains trailing zeros. See [#3](https://github.com/whizkydee/type-reverse/issues/4) for more info.
123+
This property defaults to `false`. It specifies whether to enforce preceding zeros in the result of a number that contains trailing zeros. See [#3](https://github.com/whizkydee/type-reverse/issues/4) for more info. Note that the result gets converted to a string.
124124

125125
```js
126126
reverse(240, { preserveZeros: true }); //=> "042"

0 commit comments

Comments
 (0)