\begin{quote}
Visit a method over the items in an object, or map visit over the objects in an array. \end{quote}
\hypertarget{md_sfcode_node_modules_collection_visit_README_autotoc_md5777}{}\doxysection{Install}\label{md_sfcode_node_modules_collection_visit_README_autotoc_md5777}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var visit = require('collection-\/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_collection_visit_README_autotoc_md5779}{}\doxysection{About}\label{md_sfcode_node_modules_collection_visit_README_autotoc_md5779}
\hypertarget{md_sfcode_node_modules_collection_visit_README_autotoc_md5780}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_collection_visit_README_autotoc_md5780}

\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/map-visit}{\texttt{ map-\/visit}}\+: Map {\ttfamily visit} over an array of objects. $\vert$ \href{https://github.com/jonschlinkert/map-visit}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/object-visit}{\texttt{ object-\/visit}}\+: Call a specified method on each value in the given object. $\vert$ \href{https://github.com/jonschlinkert/object-visit}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_collection_visit_README_autotoc_md5781}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_collection_visit_README_autotoc_md5781}
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_collection_visit_README_autotoc_md5782}{}\doxysubsection{Contributors}\label{md_sfcode_node_modules_collection_visit_README_autotoc_md5782}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Commits}}   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Contributor}}    }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Commits}}   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Contributor}}    }\\\cline{1-2}
\endhead
13   &\href{https://github.com/jonschlinkert}{\texttt{ jonschlinkert}}    \\\cline{1-2}
9   &\href{https://github.com/doowb}{\texttt{ doowb}}   \\\cline{1-2}
\end{longtabu}
\hypertarget{md_sfcode_node_modules_collection_visit_README_autotoc_md5783}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_collection_visit_README_autotoc_md5783}
\+\_\+(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_collection_visit_README_autotoc_md5784}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_collection_visit_README_autotoc_md5784}
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_collection_visit_README_autotoc_md5785}{}\doxysubsection{Author}\label{md_sfcode_node_modules_collection_visit_README_autotoc_md5785}
{\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_collection_visit_README_autotoc_md5786}{}\doxysubsection{License}\label{md_sfcode_node_modules_collection_visit_README_autotoc_md5786}
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.\+5.\+0, on April 09, 2017.} 