From 5e8dcb40b01fe97a9f2b4cf708d0492d75c935c7 Mon Sep 17 00:00:00 2001 From: Danny Hurlburt Date: Thu, 25 May 2017 11:34:13 -0600 Subject: [PATCH] Fix and Add Missing Import Documentation --- README.md | 2 +- src/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 57d0e70..ad4c6a4 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ npm install --save qc-to_num ## Example Usage ```js -import { toNum } from 'qc-to_num'; +import { toNum, toNumOrNull } from 'qc-to_num'; toNum('+3.1459'); // `3.1459` toNum('2'); // `2` diff --git a/src/index.ts b/src/index.ts index dafed5e..b39b779 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,6 +21,8 @@ * 4) Correctly handles `'-0'` which returns `0' instead of `-0`. * * ```js + * import { toNum, toNumOrNull } from 'qc-to_num'; + * * toNum('+3.1459'); // `3.1459` * toNum('2'); // `2` * toNum(2.6); // `2.6`