2 * Creates a function that returns `value`.
8 * @param {*} value The value to return from the new function.
9 * @returns {Function} Returns the new constant function.
12 * var objects = _.times(2, _.constant({ 'a': 1 }));
14 * console.log(objects);
15 * // => [{ 'a': 1 }, { 'a': 1 }]
17 * console.log(objects[0] === objects[1]);
20 function constant(value) {
26 module.exports = constant;