Method Error Handling
Changed
- Add
TypeErrorvalidation to methods - Split function into four methods -
flatten,flattenFrom,flattenDepthandflattenFromDepth
Changed
TypeError validation to methodsflatten, flattenFrom, flattenDepth and flattenFromDepth