Description function for flattening an array elements can be integers or other arrays Testing Using jest run jest test.js