import isArray from "./isArray2.js";
import isKey from "./_isKey2.js";
import stringToPath from "./_stringToPath2.js";
import toString from "./toString2.js";
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}
export {
  castPath as default
};
//# sourceMappingURL=_castPath2.js.map
