1 var isObject = require('../lang/isObject');
4 * Converts `value` to an object if it's not one.
7 * @param {*} value The value to process.
8 * @returns {Object} Returns the object.
10 function toObject(value) {
11 return isObject(value) ? value : Object(value);
14 module.exports = toObject;