Update source/index.ts
add suggested changes Co-authored-by: Giora Guttsait <giora111@gmail.com>
This commit is contained in:
parent
af9569bc4d
commit
a4c1ac6452
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ is.primitive = (value: unknown): value is Primitive => is.null_(value) || isPrim
|
|||
is.integer = (value: unknown): value is number => Number.isInteger(value as number);
|
||||
is.safeInteger = (value: unknown): value is number => Number.isSafeInteger(value as number);
|
||||
|
||||
is.plainObject = <Value = unknown>(value: unknown): value is Record<string | number | symbol, Value> => {
|
||||
is.plainObject = <Value = unknown, Key extends keyof any = string | number | symbol>(value: unknown): value is Record<Key, Value> => {
|
||||
// From: https://github.com/sindresorhus/is-plain-obj/blob/master/index.js
|
||||
if (toString.call(value) !== '[object Object]') {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue