.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / is-plain-obj / index.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/is-plain-obj/index.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/is-plain-obj/index.js
new file mode 100644 (file)
index 0000000..0d1ba9e
--- /dev/null
@@ -0,0 +1,7 @@
+'use strict';
+var toString = Object.prototype.toString;
+
+module.exports = function (x) {
+       var prototype;
+       return toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({}));
+};