index.js
function getByPath(target, path) {
  path = pathToArray(path);

  const values = breadcrumbs(target, path);

  return values[values.length - 1];
}
function getByPath(target, path) {
  path = pathToArray(path);

  const values = breadcrumbs(target, path);

  return values[values.length - 1];
}
function getByPath ( target , path ) { path = pathToArray ( path ) ; const values = breadcrumbs ( target , path ) ; return values [ values . length - 1 ] ; }
getByPath - Get value from `target` by `path`.

@param  {*} target Nested object or anything else.
@param  {Path} path Path to nested property.
@return {*} Returns value or undefined.
getByPath - Get value from target by path .