@qvant/qui-max
Version:
A Vue 3 Design system for Web.
13 lines (12 loc) • 380 B
JavaScript
import isArray from "./isArray.js";
import isKey from "./_isKey.js";
import stringToPath from "./_stringToPath.js";
import toString from "./toString.js";
function castPath(value, object) {
if (isArray(value)) {
return value;
}
return isKey(value, object) ? [value] : stringToPath(toString(value));
}
export { castPath as default };
//# sourceMappingURL=_castPath.js.map