From 503b1896144cf62d16ea3b7b7c88ab9964faafb5 Mon Sep 17 00:00:00 2001 From: PopGoesTheWza Date: Fri, 10 Sep 2021 01:16:15 +0200 Subject: [PATCH] comment --- source/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/index.ts b/source/index.ts index 8ee546f..875794a 100644 --- a/source/index.ts +++ b/source/index.ts @@ -360,9 +360,7 @@ is.nonEmptySet = (value: unknown): value is Set => is.set(value) is.emptyMap = (value: unknown): value is Map => is.map(value) && value.size === 0; is.nonEmptyMap = (value: unknown): value is Map => is.map(value) && value.size > 0; -/** -`PropertyKey` is any value that can be used as an object key (string, number, or symbol) -*/ +// `PropertyKey` is any value that can be used as an object key (string, number, or symbol) is.propertyKey = (value: unknown): value is PropertyKey => is.any([is.string, is.number, is.symbol], value); export type Predicate = (value: unknown) => boolean;