mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-03-20 06:21:24 +01:00
7 lines
183 B
JavaScript
7 lines
183 B
JavaScript
|
import capitalize from 'lodash.capitalize'
|
||
|
|
||
|
export default function labelFromFieldName(fieldName) {
|
||
|
let label = fieldName.split('-').slice(1).join(' ')
|
||
|
return capitalize(label)
|
||
|
}
|