"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const isArray$1 = require("./isArray.js");
const _isKey = require("./_isKey.js");
const _stringToPath = require("./_stringToPath.js");
const toString$1 = require("./toString.js");
var isArray = isArray$1.isArray_1, isKey = _isKey._isKey, stringToPath = _stringToPath._stringToPath, toString = toString$1.toString_1;
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}
var _castPath = castPath;
exports._castPath = _castPath;
