Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

asasa

const array = ["Johnny", "Billy", "Sandy"]

const newObject = Object.assign({}, array)

// newObject = { "0": "Johnny", "1": "Billy", "2": "Sandy" }
Source by coderrocketfuel.com #
 
PREVIOUS NEXT
Tagged: #asasa
ADD COMMENT
Topic
Name
3+9 =