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