Skip to content

Commit

Permalink
refactor(checks): isPlainObject()
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 2, 2018
1 parent 110a9de commit 9848576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/checks/src/is-plain-object.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export function isPlainObject(x: any): x is Object {
return x != null && x.constructor === Object;
return Object.prototype.toString.call(x) === "[object Object]";
}

0 comments on commit 9848576

Please sign in to comment.