Skip to content

Commit 516be67

Browse files
committed
Merge branch 'isobject' of git://github.com/halflings/danfojs into halflings-isobject
2 parents d56144e + fcd7701 commit 516be67

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

danfojs-browser/src/shared/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Utils {
6363
* @returns
6464
*/
6565
isObject(value) {
66-
return typeof value === "object" && value.constructor && value.constructor.name === "Object";
66+
return value && typeof value === "object" && value.constructor && value.constructor.name === "Object";
6767
}
6868

6969
/**

danfojs-node/src/shared/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Utils {
6363
* @returns
6464
*/
6565
isObject(value) {
66-
return typeof value === "object" && value.constructor && value.constructor.name === "Object";
66+
return value && typeof value === "object" && value.constructor && value.constructor.name === "Object";
6767
}
6868

6969
/**

0 commit comments

Comments
 (0)