\begin{quote}
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. \end{quote}
\hypertarget{md_sfcode_node_modules_has_values_README_autotoc_md11526}{}\doxysection{Install}\label{md_sfcode_node_modules_has_values_README_autotoc_md11526}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save has-\/values }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var hasValue = require('has-\/values');}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue('a');}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue('');}
\DoxyCodeLine{//=> false}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(1);}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(0);}
\DoxyCodeLine{//=> false}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(\{a: 'a'\}\});}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(\{\});}
\DoxyCodeLine{hasValue(\{foo: undefined\});}
\DoxyCodeLine{//=> false}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(\{foo: null\});}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(['a']);}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue([]);}
\DoxyCodeLine{hasValue([[], []]);}
\DoxyCodeLine{hasValue([[[]]]);}
\DoxyCodeLine{//=> false}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(['foo']);}
\DoxyCodeLine{hasValue([0]);}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(function(foo) \{\}); }
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(function() \{\});}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(true);}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasValue(false);}
\DoxyCodeLine{//=> true }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_has_values_README_autotoc_md11528}{}\doxysection{is\+Empty}\label{md_sfcode_node_modules_has_values_README_autotoc_md11528}
To test for empty values, do\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{function isEmpty(o, isZero) \{}
\DoxyCodeLine{  return !hasValue(o, isZero);}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_has_values_README_autotoc_md11529}{}\doxysection{Release history}\label{md_sfcode_node_modules_has_values_README_autotoc_md11529}
\hypertarget{md_sfcode_node_modules_has_values_README_autotoc_md11530}{}\doxysubsection{v1.\+0.\+0}\label{md_sfcode_node_modules_has_values_README_autotoc_md11530}

\begin{DoxyItemize}
\item {\ttfamily zero} always returns true
\item {\ttfamily array} now recurses, so that an array of empty arrays will return {\ttfamily false}
\item {\ttfamily null} now returns true
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_has_values_README_autotoc_md11531}{}\doxysection{About}\label{md_sfcode_node_modules_has_values_README_autotoc_md11531}
\hypertarget{md_sfcode_node_modules_has_values_README_autotoc_md11532}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_has_values_README_autotoc_md11532}

\begin{DoxyItemize}
\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://github.com/jonschlinkert/has-value}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/has-value}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-number}{\texttt{ is-\/number}}\+: Returns true if the value is a number. comprehensive tests. $\vert$ \href{https://github.com/jonschlinkert/is-number}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-plain-object}{\texttt{ is-\/plain-\/object}}\+: Returns true if an object was created by the {\ttfamily Object} constructor. $\vert$ \href{https://github.com/jonschlinkert/is-plain-object}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/isobject}{\texttt{ isobject}}\+: Returns true if the value is an object and not an array or null. $\vert$ \href{https://github.com/jonschlinkert/isobject}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/kind-of}{\texttt{ kind-\/of}}\+: Get the native type of a value. $\vert$ \href{https://github.com/jonschlinkert/kind-of}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_has_values_README_autotoc_md11533}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_has_values_README_autotoc_md11533}
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_has_values_README_autotoc_md11534}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_has_values_README_autotoc_md11534}
\+\_\+(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_has_values_README_autotoc_md11535}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_has_values_README_autotoc_md11535}
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_has_values_README_autotoc_md11536}{}\doxysubsection{Author}\label{md_sfcode_node_modules_has_values_README_autotoc_md11536}
{\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_has_values_README_autotoc_md11537}{}\doxysubsection{License}\label{md_sfcode_node_modules_has_values_README_autotoc_md11537}
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 19, 2017.} 