1 var isArray = require('./isArray'),
2 stringToPath = require('./_stringToPath');
5 * The base implementation of `_.toPath` which only converts `value` to a
6 * path if it's not one.
9 * @param {*} value The value to process.
10 * @returns {Array} Returns the property path array.
12 function baseToPath(value) {
13 return isArray(value) ? value : stringToPath(value);
16 module.exports = baseToPath;