lib/core/loader.js
function normalizeKeys (keys, json) {
  Object.keys(json)
    .filter(k => keys.includes(k))
    .forEach(k => {
      json[k] = normalize(json[k])
    })

  return json
}
function normalizeKeys (keys, json) {
  Object.keys(json)
    .filter(k => keys.includes(k))
    .forEach(k => {
      json[k] = normalize(json[k])
    })

  return json
}
function normalizeKeys ( keys , json ) { Object . keys ( json ) . filter ( k => keys . includes ( k ) ) . forEach ( k => { json [ k ] = normalize ( json [ k ] ) } ) return json }
TODO: this should probably be done as a custom tag processor with xml2js.
TODO : this should probably be done as a custom tag processor with xml2js .