I have an array, that contains another arrays with string id's. I need to get an array with string ids, that are exists in all arrays of parent.
Here is example:
const parentArray = [ ['test1', 'test2', 'test3'], ['test2', 'test4', 'test5'], ['test3', 'test2', 'test6']];
//some magic. Maybe use lodash instersection func
console.log(result) => ['test2']
Important note! I don't know, how much arrays of elements in parent array, thats the problem that i cant understand how to use lodash intersection function:(