Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reduce dot notations to javascript array

'a.b.etc'.split('.').reduce((o,i)=> o[i], obj)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reduce #dot #notations #javascript #array
ADD COMMENT
Topic
Name
8+8 =