From f117d219c3bfff8cc8318b2b0f2ef216a2e0d2aa Mon Sep 17 00:00:00 2001 From: Olaolu Olawuyi Date: Tue, 21 Aug 2018 12:27:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84:=20update=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index ceafd6c..f48b16f 100644 --- a/readme.md +++ b/readme.md @@ -88,7 +88,7 @@ reverse(set); //=> Set { 3, 4, 5 } ## options -`options` is the second parameter to the function call and it is an object with two available properties... +`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. ### `invert: {String}` @@ -120,7 +120,7 @@ reverse(/*...*/, { ### `preserveZeros: {Boolean}` -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. +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. ```js reverse(240, { preserveZeros: true }); //=> "042"