\#is-\/symbol \textsuperscript{\href{https://npmjs.org/package/is-symbol}{\texttt{ }}}

\href{https://travis-ci.org/inspect-js/is-symbol}{\texttt{ }} \href{https://david-dm.org/inspect-js/is-symbol}{\texttt{ }} \href{https://david-dm.org/inspect-js/is-symbol\#info=devDependencies}{\texttt{ }} \mbox{[}\mbox{]}\mbox{[}license-\/url\mbox{]} \href{http://npm-stat.com/charts.html?package=is-symbol}{\texttt{ }}

\href{https://npmjs.org/package/is-symbol}{\texttt{ }}

\mbox{[}!\mbox{[}browser support\mbox{]}\mbox{[}9\mbox{]}\mbox{]}\mbox{[}10\mbox{]}

Is this an ES6 Symbol value?\hypertarget{md_sfcode_node_modules_is_symbol_README_autotoc_md13242}{}\doxysubsection{Example}\label{md_sfcode_node_modules_is_symbol_README_autotoc_md13242}

\begin{DoxyCode}{0}
\DoxyCodeLine{var isSymbol = require('is-\/symbol');}
\DoxyCodeLine{assert(!isSymbol(function () \{\}));}
\DoxyCodeLine{assert(!isSymbol(null));}
\DoxyCodeLine{assert(!isSymbol(function* () \{ yield 42; return Infinity; \});}
\DoxyCodeLine{}
\DoxyCodeLine{assert(isSymbol(Symbol.iterator));}
\DoxyCodeLine{assert(isSymbol(Symbol('foo')));}
\DoxyCodeLine{assert(isSymbol(Symbol.for('foo')));}
\DoxyCodeLine{assert(isSymbol(Object(Symbol('foo')))); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_symbol_README_autotoc_md13243}{}\doxysubsection{Tests}\label{md_sfcode_node_modules_is_symbol_README_autotoc_md13243}
Simply clone the repo, {\ttfamily npm install}, and run {\ttfamily npm test} 