Version 1
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _isPrototype.js
diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/_isPrototype.js b/node_modules/grunt-legacy-util/node_modules/lodash/_isPrototype.js
new file mode 100644 (file)
index 0000000..0f29498
--- /dev/null
@@ -0,0 +1,18 @@
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/**
+ * Checks if `value` is likely a prototype object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
+ */
+function isPrototype(value) {
+  var Ctor = value && value.constructor,
+      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
+
+  return value === proto;
+}
+
+module.exports = isPrototype;