UNPKG
@ahsolo/lotide
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
lotide assignment for Lighthouse Labs coding bootcamp
github.com/ahSOLO/lotide
ahSOLO/lotide
@ahsolo/lotide
/
test
/
flattenTest.js
6 lines
(4 loc)
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
const
assertArraysEqual =
require
(
"../assertArraysEqual"
);
assertArraysEqual
(
flatten
([
1
,
2
, [
3
,
4
],
5
, [
6
]]), [
1
,
2
,
3
,
4
,
5
,
6
]);
assertArraysEqual
(
flatten
([
1
, [
2
,
3
,
4
]]), [
1
,
2
,
3
,
4
]);
assertArraysEqual
(
flatten
([
"nonono"
, [
"wewewe"
]]), [
"nonono"
,
"wewewe"
]);