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

Function castPath

src/helpers/set.js:572–574  ·  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

570 * @returns {Array} Returns the cast property path array.
571 */
572function castPath(value) {
573 return isArray(value) ? value : stringToPath(value);
574}
575
576/**
577 * Gets the data for `map`.

Callers 1

baseSetFunction · 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…