\href{https://travis-ci.org/stoeffel/arityN}{\texttt{ }} \href{http://badge.fury.io/js/arity-n}{\texttt{ }} \begin{quote}
Wraps a function with a function of a sertain arity. \end{quote}
\hypertarget{md_sfcode_node_modules_arity_n_README_autotoc_md3150}{}\doxysection{Installation}\label{md_sfcode_node_modules_arity_n_README_autotoc_md3150}
{\ttfamily npm install arity-\/n}\hypertarget{md_sfcode_node_modules_arity_n_README_autotoc_md3151}{}\doxysection{Usage}\label{md_sfcode_node_modules_arity_n_README_autotoc_md3151}

\begin{DoxyCode}{0}
\DoxyCodeLine{function fn(a, b, c, d) \{}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{var arityN = require('arity-\/n');}
\DoxyCodeLine{var newFn = arityN(fn, 3);}
\DoxyCodeLine{}
\DoxyCodeLine{newFn.length; // => 3}
\DoxyCodeLine{}
\DoxyCodeLine{var arity4 = require('arity-\/n/4');}
\DoxyCodeLine{var newFn = arity4(fn);}
\DoxyCodeLine{}
\DoxyCodeLine{newFn.length; // => 4}
\DoxyCodeLine{}
\DoxyCodeLine{// Max arity is 5.}
\DoxyCodeLine{var newFn = arityN(fn, 7);}
\DoxyCodeLine{}
\DoxyCodeLine{newFn.length; // => 4 }

\end{DoxyCode}
 