{\itshape Array} instance\hypertarget{md_sfcode_node_modules_ext_node_modules_type_docs_array_autotoc_md9929}{}\doxysection{$<$tt$>$array/is$<$/tt$>$}\label{md_sfcode_node_modules_ext_node_modules_type_docs_array_autotoc_md9929}
Confirms if given object is a native array


\begin{DoxyCode}{0}
\DoxyCodeLine{const isArray = require("{}type/array/is"{});}
\DoxyCodeLine{}
\DoxyCodeLine{isArray([]); // true}
\DoxyCodeLine{isArray(\{\}); // false}
\DoxyCodeLine{isArray("{}foo"{}); // false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_ext_node_modules_type_docs_array_autotoc_md9930}{}\doxysection{$<$tt$>$array/ensure$<$/tt$>$}\label{md_sfcode_node_modules_ext_node_modules_type_docs_array_autotoc_md9930}
If given argument is an array, it is returned back. Otherwise {\ttfamily Type\+Error} is thrown.


\begin{DoxyCode}{0}
\DoxyCodeLine{const ensureArray = require("{}type/array/ensure"{});}
\DoxyCodeLine{}
\DoxyCodeLine{ensureArray(["{}foo"{}]); // ["{}foo"{}]}
\DoxyCodeLine{ensureArray("{}foo"{}); // Thrown TypeError: foo is not an array }

\end{DoxyCode}
 