\begin{quote}
Create an object path from a list or array of strings. \end{quote}
\hypertarget{md_sfcode_node_modules_to_object_path_README_autotoc_md30504}{}\doxysection{Install}\label{md_sfcode_node_modules_to_object_path_README_autotoc_md30504}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm i to-\/object-\/path -\/-\/save }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_to_object_path_README_autotoc_md30505}{}\doxysection{Usage}\label{md_sfcode_node_modules_to_object_path_README_autotoc_md30505}

\begin{DoxyCode}{0}
\DoxyCodeLine{var toPath = require('to-\/object-\/path');}
\DoxyCodeLine{}
\DoxyCodeLine{toPath('foo', 'bar', 'baz');}
\DoxyCodeLine{toPath('foo', ['bar', 'baz']);}
\DoxyCodeLine{//=> 'foo.bar.baz' }

\end{DoxyCode}


Also supports passing an arguments object (without having to slice args)\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{function foo()}
\DoxyCodeLine{  return toPath(arguments);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{foo('foo', 'bar', 'baz');}
\DoxyCodeLine{foo('foo', ['bar', 'baz']);}
\DoxyCodeLine{//=> 'foo.bar.baz' }

\end{DoxyCode}


Visit the \href{./example.js}{\texttt{ example}} to see how this could be used in an application.\hypertarget{md_sfcode_node_modules_to_object_path_README_autotoc_md30506}{}\doxysection{Related projects}\label{md_sfcode_node_modules_to_object_path_README_autotoc_md30506}

\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/get-value}{\texttt{ get-\/value}}\+: Use property paths ({\ttfamily a.\+b.\+c}) to get a nested value from an object. $\vert$ \href{https://github.com/jonschlinkert/get-value}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/has-value}{\texttt{ has-\/value}}\+: Returns true if a value exists, false if empty. Works with deeply nested values using… \href{https://www.npmjs.com/package/has-value}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/has-value}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/omit-value}{\texttt{ omit-\/value}}\+: Omit properties from an object or deeply nested property of an object using object path… \href{https://www.npmjs.com/package/omit-value}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/omit-value}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/set-value}{\texttt{ set-\/value}}\+: Create nested values and any intermediaries using dot notation (`\textquotesingle{}a.\+b.\+c'\`{}) paths. $\vert$ \href{https://github.com/jonschlinkert/set-value}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/unset-value}{\texttt{ unset-\/value}}\+: Delete nested properties from an object using dot notation. $\vert$ \href{https://github.com/jonschlinkert/unset-value}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_to_object_path_README_autotoc_md30507}{}\doxysection{Running tests}\label{md_sfcode_node_modules_to_object_path_README_autotoc_md30507}
Install dev dependencies\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm i -\/d \&\& npm test }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_to_object_path_README_autotoc_md30508}{}\doxysection{Contributing}\label{md_sfcode_node_modules_to_object_path_README_autotoc_md30508}
Pull requests and stars are always welcome. For bugs and feature requests, \href{https://github.com/jonschlinkert/to-object-path/issues/new}{\texttt{ please create an issue}}.\hypertarget{md_sfcode_node_modules_to_object_path_README_autotoc_md30509}{}\doxysection{Author}\label{md_sfcode_node_modules_to_object_path_README_autotoc_md30509}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{http://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_to_object_path_README_autotoc_md30510}{}\doxysection{License}\label{md_sfcode_node_modules_to_object_path_README_autotoc_md30510}
Copyright © 2015 Jon Schlinkert Released under the MIT license.

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/assemble/verb-cli}{\texttt{ verb-\/cli}} on October 28, 2015.} 