src/utils/kanaMapping.js
// allow consumer to pass either function or object as customMapping
allow consumer to pass either function or object as customMapping
allow consumer to pass either function or object as customMapping
function mergeCustomMapping(map, customMapping) {
  if (!customMapping) {
    return map;
  }
  return typeOf(customMapping) === 'function'
    ? customMapping(map)
    : createCustomMapping(customMapping)(map);
}
function mergeCustomMapping ( map , customMapping ) { if ( ! customMapping ) { return map ; } return typeOf ( customMapping ) === 'function' ? customMapping ( map ) : createCustomMapping ( customMapping ) ( map ) ; }
allow consumer to pass either function or object as customMapping
allow consumer to pass either function or object as customMapping