Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

Commit

Permalink
Map serialize and parse
Browse files Browse the repository at this point in the history
  • Loading branch information
evangelos.vlachogiannis committed Oct 2, 2015
1 parent dc2283c commit fb65b8a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/Entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,12 @@ module.exports = class Entity {
{
obj[newKey] = property;
}
else if (property instanceof Map)
else if(property instanceof Map)
{
let arr = [];
for (let pair of property)
{
let o = {
key: pair[0],
value: pair[1]
};
let o = [pair[0], pair[1]];
arr.push(o);
}
obj[newKey] = arr;
Expand Down

0 comments on commit fb65b8a

Please sign in to comment.