* Creates a function that returns `value`. * * @static * @memberOf _ * @category Utilities * @param {*} value The value to return from the new function. * @returns {Function} Returns the new function. * @example * * var object = { 'name': 'fred' }; *
(value)
| 40890 | * // => true |
| 40891 | */ |
| 40892 | function constant(value) { |
| 40893 | return function() { |
| 40894 | return value; |
| 40895 | }; |
| 40896 | } |
| 40897 | |
| 40898 | /** |
| 40899 | * Produces a callback bound to an optional `thisArg`. If `func` is a property |