MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / lodash

Function lodash

MathBox/mathbox-bundle.js:35721–35726  ·  view source on GitHub ↗

* Creates a `lodash` object which wraps the given value to enable intuitive * method chaining. * * In addition to Lo-Dash methods, wrappers also have the following `Array` methods: * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`, * and `unshi

(value)

Source from the content-addressed store, hash-verified

35719 * // => true
35720 */
35721 function lodash(value) {
35722 // don't wrap if already wrapped, even if wrapped by a different `lodash` constructor
35723 return (value && typeof value == 'object' && !isArray(value) && hasOwnProperty.call(value, '__wrapped__'))
35724 ? value
35725 : new lodashWrapper(value);
35726 }
35727
35728 /**
35729 * A fast path for creating `lodash` wrapper objects.

Callers

nothing calls this directly

Calls 1

isArrayFunction · 0.70

Tested by

no test coverage detected