mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Fix various doc typos and update builds.
This commit is contained in:
13
dist/lodash.underscore.js
vendored
13
dist/lodash.underscore.js
vendored
@@ -3636,7 +3636,7 @@
|
||||
* @example
|
||||
*
|
||||
* var realNameMap = {
|
||||
* 'pebbles': 'jerome'
|
||||
* 'pebbles': 'penelope'
|
||||
* };
|
||||
*
|
||||
* var format = function(name) {
|
||||
@@ -3650,7 +3650,7 @@
|
||||
*
|
||||
* var welcome = _.compose(greet, format);
|
||||
* welcome('pebbles');
|
||||
* // => 'Hiya Jerome!'
|
||||
* // => 'Hiya Penelope!'
|
||||
*/
|
||||
function compose() {
|
||||
var funcs = arguments,
|
||||
@@ -4070,11 +4070,12 @@
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
* var pre= _.wrap(_.escape, function(func, text) {
|
||||
* return '<div>' + func(text) + '</div>';
|
||||
* var p = _.wrap(_.escape, function(func, text) {
|
||||
* return '<p>' + func(text) + '</p>';
|
||||
* });
|
||||
* pre('Fred, Wilma, & Pebbles');
|
||||
* // => '<div>Fred, Wilma, & Pebbles</div>'
|
||||
*
|
||||
* p('Fred, Wilma, & Pebbles');
|
||||
* // => '<p>Fred, Wilma, & Pebbles</p>'
|
||||
*/
|
||||
function wrap(value, wrapper) {
|
||||
return createBound(wrapper, 16, [value]);
|
||||
|
||||
Reference in New Issue
Block a user