* Creates a `lodash` object which wraps `value` to enable implicit method * chain sequences. Methods that operate on and return arrays, collections, * and functions can be chained together. Methods that retrieve a single value * or may return a primitive value will automatically end t
(value)
| 9293 | * // => true |
| 9294 | */ |
| 9295 | function lodash(value) { |
| 9296 | if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { |
| 9297 | if (value instanceof LodashWrapper) { |
| 9298 | return value; |
| 9299 | } |
| 9300 | if (hasOwnProperty.call(value, '__wrapped__')) { |
| 9301 | return wrapperClone(value); |
| 9302 | } |
| 9303 | } |
| 9304 | return new LodashWrapper(value); |
| 9305 | } |
| 9306 | |
| 9307 | /** |
| 9308 | * The base implementation of `_.create` without support for assigning |
no test coverage detected