Javascript How To Traverse Nested Array Upwards From Current Record

Javascript How To Traverse Nested Array Upwards From Current Record