Closed natergj closed 5 years ago
Using simple JSON.stringify causes that problem.
const s1 = JSON.stringify({ a: 1, b: 2, c: 3 })
const s2 = JSON.stringify({ c: 3, b: 2, a: 1 }) //the same as previous
console.log(s1 === s2) //false
because:
"{"a":1,"b":2,"c":3}" not equals "{"c":3,"b":2,"a":1}" (as strings)
complex strings (arrays) could not be used as keys for an object lookup. since
Map
keys can be any type, switch to using those for lookups.fixes: https://github.com/natergj/excel4node/issues/269