Closed alexwhitman closed 10 years ago
Fixes #7. Creates a converter which maps another converter on an array:
var input = [ { a: '1', b: '2' }, { a: '3', b: '4' } ]; var objConverter = jm.makeConverter({ a: 'a' }); var arrayConverter = jm.makeMapConverter(objConverter); arrayConverter(input); /* Result: [ { a: '1' }, { a: '3' } ] */
Fixes #7. Creates a converter which maps another converter on an array: