In JavaScript, how do I test that one array has the elements of another array?
arr1 = [1, 2, 3, 4, 5] [8, 1, 10, 2, 3, 4, 5, 9].function_name(arr1) # => t
I faced the same case if I got you exactly, my case was to check visited places while one trip, every trip have its own point and we have a data for all working area places, here is the code maybe help you.
https://stackblitz.com/edit/trips-calculator?file=index.js