"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const isArray = require("./isArray.cjs");
const _isKey = require("./_isKey.cjs");
const _stringToPath = require("./_stringToPath.cjs");
const toString = require("./toString.cjs");
function castPath(value, object) {
  if (isArray.default(value)) {
    return value;
  }
  return _isKey.default(value, object) ? [value] : _stringToPath.default(toString.default(value));
}
exports.default = castPath;
//# sourceMappingURL=_castPath.cjs.map
