From 522c7482f2933f7608095d376d2bd941929d1417 Mon Sep 17 00:00:00 2001 From: Itai Steinherz Date: Thu, 25 Oct 2018 00:50:46 +0300 Subject: [PATCH] `bool` => `boolean` --- source/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.ts b/source/index.ts index afdb3a1..23c1829 100644 --- a/source/index.ts +++ b/source/index.ts @@ -136,7 +136,7 @@ namespace is { // tslint:disable-line:no-namespace // tslint:enable:variable-name export const nullOrUndefined = (value: any): value is null | undefined => null_(value) || undefined(value); - export const numericString = (value: string): bool => + export const numericString = (value: string): boolean => !Number.isNaN(Number(value)); export const array = Array.isArray;