Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js convert array to object

const names = ['Alex', 'Bob', 'Johny', 'Atta'];

const obj = Object.assign({}, names);
Source by attacomsian.com #
 
PREVIOUS NEXT
Tagged: #js #convert #array #object
ADD COMMENT
Topic
Name
1+9 =