Skip to content

Commit

Permalink
replace const with var for flow-friendly code
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkvasnicak committed Jul 23, 2015
1 parent 0c87ead commit 5734779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/isPlainObject.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const fnToString = (fn) => Function.prototype.toString.call(fn);
var fnToString = (fn) => Function.prototype.toString.call(fn);

/**
* @param {any} obj The object to inspect.
Expand All @@ -9,7 +9,7 @@ export default function isPlainObject(obj) {
return false;
}

const proto = typeof obj.constructor === 'function' ? Object.getPrototypeOf(obj) : Object.prototype;
var proto = typeof obj.constructor === 'function' ? Object.getPrototypeOf(obj) : Object.prototype;

if (proto === null) {
return true;
Expand Down

0 comments on commit 5734779

Please sign in to comment.