Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript get object value

const data = {
  a: "first",
  b: "second",
};

const values = Object.keys(data).map(key => data[key]);

const commaJoinedValues = values.join(",");
console.log(commaJoinedValues);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #object
ADD COMMENT
Topic
Name
1+9 =