Hello! :)
» npm t
PASS ./flatten.test.js
flatten
when input value is not Array
when input value is undefined
✓ returns "undefined" (3ms)
when input value is null
✓ returns "undefined"
when input value is number
✓ returns "undefined" (1ms)
when input value is string
✓ returns "undefined"
when input value is object
✓ returns "undefined"
when input value is Array
when array is empty
✓ returns flattened array (1ms)
when array is flat
✓ returns flattened array
when array is not a flat
✓ returns flattened array
✓ returns flattened array
Test Suites: 1 passed, 1 total
Tests: 9 passed, 9 total
Snapshots: 0 total
Time: 0.775s, estimated 1s
Ran all test suites.