Horje
convert map to object/JSON javascript Code Example
convert map to object/JSON javascript
const map1 = new Map([
  ['foo', 'bar'],
  ['baz', 42]
]);

const obj = Object.fromEntries(map1);
// { foo: 'bar', baz: 42 }

//To get back the map:
const map2 = new Map(Object.entries(obj));




Javascript

Related
bottom tab navigator react native transparent Code Example bottom tab navigator react native transparent Code Example
how to use the replace method in javascript Code Example how to use the replace method in javascript Code Example
javascript object to query string Code Example javascript object to query string Code Example
falsy values javascript Code Example falsy values javascript Code Example
javascript array to query string Code Example javascript array to query string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7