Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / toObject.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/toObject.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/toObject.js
new file mode 100644 (file)
index 0000000..da4a008
--- /dev/null
@@ -0,0 +1,14 @@
+var isObject = require('../lang/isObject');
+
+/**
+ * Converts `value` to an object if it's not one.
+ *
+ * @private
+ * @param {*} value The value to process.
+ * @returns {Object} Returns the object.
+ */
+function toObject(value) {
+  return isObject(value) ? value : Object(value);
+}
+
+module.exports = toObject;