Hetarth02 / js-array-helpers

Array Helper functions for your quick use.
MIT License
8 stars 9 forks source link

Flatten, Intersection, and Difference functions #18

Closed Neesh774 closed 1 year ago

Neesh774 commented 1 year ago

Flatten: Flatten a nested array (the nesting can be to any depth). Intersection: Gets the intersection between two arrays (i.e. the elements that are present in both arrays). Difference: Gets the difference between two arrays (i.e. the elements that are present in the first array, but not in the second).