\begin{quote}
Iterate over the own and inherited enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning {\ttfamily false}. Java\+Script/\+Node.\+js \end{quote}
\hypertarget{md_sfcode_node_modules_for_in_README_autotoc_md10826}{}\doxysection{Install}\label{md_sfcode_node_modules_for_in_README_autotoc_md10826}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save for-\/in }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var forIn = require('for-\/in');}
\DoxyCodeLine{}
\DoxyCodeLine{var obj = \{a: 'foo', b: 'bar', c: 'baz'\};}
\DoxyCodeLine{var values = [];}
\DoxyCodeLine{var keys = [];}
\DoxyCodeLine{}
\DoxyCodeLine{forIn(obj, function (value, key, o) \{}
\DoxyCodeLine{  keys.push(key);}
\DoxyCodeLine{  values.push(value);}
\DoxyCodeLine{\});}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(keys);}
\DoxyCodeLine{//=> ['a', 'b', 'c'];}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(values);}
\DoxyCodeLine{//=> ['foo', 'bar', 'baz']; }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_for_in_README_autotoc_md10828}{}\doxysection{About}\label{md_sfcode_node_modules_for_in_README_autotoc_md10828}
\hypertarget{md_sfcode_node_modules_for_in_README_autotoc_md10829}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_for_in_README_autotoc_md10829}

\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/arr-flatten}{\texttt{ arr-\/flatten}}\+: Recursively flatten an array or arrays. This is the fastest implementation of array flatten. $\vert$ \href{https://github.com/jonschlinkert/arr-flatten}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/collection-map}{\texttt{ collection-\/map}}\+: Returns an array of mapped values from an array or object. $\vert$ \href{https://github.com/jonschlinkert/collection-map}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/for-own}{\texttt{ for-\/own}}\+: Iterate over the own enumerable properties of an object, and return an object with properties… \href{https://github.com/jonschlinkert/for-own}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/for-own}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_for_in_README_autotoc_md10830}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_for_in_README_autotoc_md10830}
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_for_in_README_autotoc_md10831}{}\doxysubsection{Contributors}\label{md_sfcode_node_modules_for_in_README_autotoc_md10831}
\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
16   &\href{https://github.com/jonschlinkert}{\texttt{ jonschlinkert}}    \\\cline{1-2}
2   &\href{https://github.com/paulirish}{\texttt{ paulirish}}   \\\cline{1-2}
\end{longtabu}
\hypertarget{md_sfcode_node_modules_for_in_README_autotoc_md10832}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_for_in_README_autotoc_md10832}
\+\_\+(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_for_in_README_autotoc_md10833}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_for_in_README_autotoc_md10833}
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_for_in_README_autotoc_md10834}{}\doxysubsection{Author}\label{md_sfcode_node_modules_for_in_README_autotoc_md10834}
{\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_for_in_README_autotoc_md10835}{}\doxysubsection{License}\label{md_sfcode_node_modules_for_in_README_autotoc_md10835}
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.\+4.\+2, on February 28, 2017.} 