Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / internal / toObject.js
1 var isObject = require('../lang/isObject');
2
3 /**
4  * Converts `value` to an object if it's not one.
5  *
6  * @private
7  * @param {*} value The value to process.
8  * @returns {Object} Returns the object.
9  */
10 function toObject(value) {
11   return isObject(value) ? value : Object(value);
12 }
13
14 module.exports = toObject;