src/index.js
function makeConverter(obj) {
  return Object.entries(obj).map(([type, converter]) => {
    return {[type[0].toUpperCase() + type.slice(1)]: converter};
  }).reduce((a, b) => Object.assign(a, b), {});

}
function makeConverter(obj) {
  return Object.entries(obj).map(([type, converter]) => {
    return {[type[0].toUpperCase() + type.slice(1)]: converter};
  }).reduce((a, b) => Object.assign(a, b), {});

}
function makeConverter ( obj ) { return Object . entries ( obj ) . map ( ( [ type , converter ] ) => { return { [ type [ 0 ] . toUpperCase ( ) + type . slice ( 1 ) ] : converter } ; } ) . reduce ( ( a , b ) => Object . assign ( a , b ) , { } ) ; }
A helper to de-camelcase this module's geometry conversion methods
@param  {Object} obj a mapping of camelcase geometry types to converter functions
@return {Object} a mapping of capitalized geometry types to converter functions
@example
makeConverter({lineString})
// returns {LineString: lineString}
A helper to de - camelcase this module s geometry conversion methods