import reject from 'lodash/collection/reject'; export default function splitPath(path) { return Array.isArray(path) ? path : reject(path.split('.'), x => !x); }