Kurangi notasi titik ke array JavaScript

'a.b.etc'.split('.').reduce((o,i)=> o[i], obj)
Samiksha Singla