We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e92ce6 + ddbfed9 commit 8faef1aCopy full SHA for 8faef1a
.gitignore
@@ -6,6 +6,10 @@ logs
6
*.log
7
npm-debug.log*
8
9
+# IDEs and editors
10
+/.idea
11
+/.vscode
12
+
13
# Runtime data
14
pids
15
*.pid
index.js
@@ -4,11 +4,7 @@ var TEST_REGEX = /^\$|\./,
4
REPLACE_REGEX = /^\$|\./g;
5
function isPlainObject(obj) {
- if(obj === null || typeof obj !== 'object') {
- return false;
- }
- var proto = Object.getPrototypeOf(obj);
- return proto === Object.prototype || proto === null;
+ return typeof obj === 'object' && obj !== null;
}
function withEach(target, cb) {
0 commit comments