Rename master branch to main
This commit is contained in:
parent
da6bb531af
commit
4f8b01f2dc
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ is.safeInteger = (value: unknown): value is number => Number.isSafeInteger(value
|
||||||
|
|
||||||
type ObjectKey = string | number | symbol;
|
type ObjectKey = string | number | symbol;
|
||||||
is.plainObject = <Value = unknown>(value: unknown): value is Record<ObjectKey, Value> => {
|
is.plainObject = <Value = unknown>(value: unknown): value is Record<ObjectKey, Value> => {
|
||||||
// From: https://github.com/sindresorhus/is-plain-obj/blob/master/index.js
|
// From: https://github.com/sindresorhus/is-plain-obj/blob/main/index.js
|
||||||
if (toString.call(value) !== '[object Object]') {
|
if (toString.call(value) !== '[object Object]') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue