mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v4.16.5.
This commit is contained in:
5
wrap.js
5
wrap.js
@@ -1,4 +1,4 @@
|
||||
define(['./identity', './partial'], function(identity, partial) {
|
||||
define(['./_castFunction', './partial'], function(castFunction, partial) {
|
||||
|
||||
/**
|
||||
* Creates a function that provides `value` to `wrapper` as its first
|
||||
@@ -23,8 +23,7 @@ define(['./identity', './partial'], function(identity, partial) {
|
||||
* // => '<p>fred, barney, & pebbles</p>'
|
||||
*/
|
||||
function wrap(value, wrapper) {
|
||||
wrapper = wrapper == null ? identity : wrapper;
|
||||
return partial(wrapper, value);
|
||||
return partial(castFunction(wrapper), value);
|
||||
}
|
||||
|
||||
return wrap;
|
||||
|
||||
Reference in New Issue
Block a user