\begin{quote}
Call a specified method on each value in the given object. \end{quote}
\hypertarget{md_sfcode_node_modules_object_visit_README_autotoc_md18866}{}\doxysection{Install}\label{md_sfcode_node_modules_object_visit_README_autotoc_md18866}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save object-\/visit }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var visit = require('object-\/visit');}
\DoxyCodeLine{}
\DoxyCodeLine{var ctx = \{}
\DoxyCodeLine{  data: \{\},}
\DoxyCodeLine{  set: function (key, value) \{}
\DoxyCodeLine{    if (typeof key === 'object') \{}
\DoxyCodeLine{      visit(ctx, 'set', key);}
\DoxyCodeLine{    \} else \{}
\DoxyCodeLine{      ctx.data[key] = value;}
\DoxyCodeLine{    \}}
\DoxyCodeLine{  \}}
\DoxyCodeLine{\};}
\DoxyCodeLine{}
\DoxyCodeLine{ctx.set('a', 'a');}
\DoxyCodeLine{ctx.set('b', 'b');}
\DoxyCodeLine{ctx.set('c', 'c');}
\DoxyCodeLine{ctx.set(\{d: \{e: 'f'\}\});}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(ctx.data);}
\DoxyCodeLine{//=> \{a: 'a', b: 'b', c: 'c', d: \{ e: 'f' \}\}; }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_object_visit_README_autotoc_md18868}{}\doxysection{About}\label{md_sfcode_node_modules_object_visit_README_autotoc_md18868}
\hypertarget{md_sfcode_node_modules_object_visit_README_autotoc_md18869}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_object_visit_README_autotoc_md18869}

\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/base-methods}{\texttt{ base-\/methods}}\+: base-\/methods is the foundation for creating modular, unit testable and highly pluggable node.\+js applications, starting… \href{https://github.com/jonschlinkert/base-methods}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/base-methods}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/collection-visit}{\texttt{ collection-\/visit}}\+: Visit a method over the items in an object, or map visit over the objects… \href{https://github.com/jonschlinkert/collection-visit}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/collection-visit}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/define-property}{\texttt{ define-\/property}}\+: Define a non-\/enumerable property on an object. $\vert$ \href{https://github.com/jonschlinkert/define-property}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/map-visit}{\texttt{ map-\/visit}}\+: Map {\ttfamily visit} over an array of objects. $\vert$ \href{https://github.com/jonschlinkert/map-visit}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_object_visit_README_autotoc_md18870}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_object_visit_README_autotoc_md18870}
Pull requests and stars are always welcome. For bugs and feature requests, \href{../../issues/new}{\texttt{ please create an issue}}.\hypertarget{md_sfcode_node_modules_object_visit_README_autotoc_md18871}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_object_visit_README_autotoc_md18871}
\+\_\+(This project\textquotesingle{}s readme.\+md is generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb}}, please don\textquotesingle{}t edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)\+\_\+

To generate the readme, run the following command\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/g verbose/verb\#dev verb-\/generate-\/readme \&\& verb }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_object_visit_README_autotoc_md18872}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_object_visit_README_autotoc_md18872}
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install \&\& npm test }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_object_visit_README_autotoc_md18873}{}\doxysubsection{Author}\label{md_sfcode_node_modules_object_visit_README_autotoc_md18873}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{https://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_object_visit_README_autotoc_md18874}{}\doxysubsection{License}\label{md_sfcode_node_modules_object_visit_README_autotoc_md18874}
Copyright © 2017, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}. Released under the \mbox{[}MIT License\mbox{]}(LICENSE).

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}}, v0.\+6.\+0, on May 30, 2017.} 