import isArray_1 from "./isArray.js";
import _isKey from "./_isKey.js";
import _stringToPath from "./_stringToPath.js";
import toString_1 from "./toString.js";
var isArray = isArray_1, isKey = _isKey, stringToPath = _stringToPath, toString = toString_1;
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}
var _castPath = castPath;
export {
  _castPath as default
};
//# sourceMappingURL=_castPath.js.map
