update eslint config

This commit is contained in:
Philipp Kühn
2021-12-01 15:40:50 +01:00
parent 400e671454
commit fa18ffe6d7
3 changed files with 11 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ function getType(value: any): string {
}
export default function isPlainObject(value: any): value is Record<string, any> {
if (getType(value) !== 'Object') return false
if (getType(value) !== 'Object') {
return false
}
return value.constructor === Object && Object.getPrototypeOf(value) === Object.prototype
}