MCPcopy
hub / github.com/Kong/insomnia / lodash

Function lodash

packages/insomnia/bin/yarn-standalone.js:9295–9305  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 1

chainFunction · 0.85

Calls 3

isObjectLikeFunction · 0.85
isArrayFunction · 0.85
wrapperCloneFunction · 0.85

Tested by

no test coverage detected