MCPcopy Create free account
hub / github.com/Lemoncode/fonk / castPath

Function castPath

src/helpers/get.js:526–528  ·  view source on GitHub ↗

* Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @returns {Array} Returns the cast property path array.

(value)

Source from the content-addressed store, hash-verified

524 * @returns {Array} Returns the cast property path array.
525 */
526function castPath(value) {
527 return isArray(value) ? value : stringToPath(value);
528}
529
530/**
531 * Gets the data for `map`.

Callers 1

baseGetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…