Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replacing value of arrayObj using map and spread operator

  events =data?.events?.map(item => ({...item, title: "Busy"}));
 
PREVIOUS NEXT
Tagged: #replacing #arrayObj #map #spread #operator
ADD COMMENT
Topic
Name
5+4 =