mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Bump to v4.16.5.
This commit is contained in:
5
wrap.js
5
wrap.js
@@ -1,4 +1,4 @@
|
||||
import identity from './identity.js';
|
||||
import castFunction from './_castFunction.js';
|
||||
import partial from './partial.js';
|
||||
|
||||
/**
|
||||
@@ -24,8 +24,7 @@ import partial from './partial.js';
|
||||
* // => '<p>fred, barney, & pebbles</p>'
|
||||
*/
|
||||
function wrap(value, wrapper) {
|
||||
wrapper = wrapper == null ? identity : wrapper;
|
||||
return partial(wrapper, value);
|
||||
return partial(castFunction(wrapper), value);
|
||||
}
|
||||
|
||||
export default wrap;
|
||||
|
||||
Reference in New Issue
Block a user