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;