src/components/extractFields.js
function getLanguages(properties) {
  if (!Array.isArray(properties['wof:lang_x_official'])) {
    return [];
  }
  return properties['wof:lang_x_official']
    .filter(l => (typeof l === 'string' && l.length === 3))
    .map(l => l.toLowerCase());
}
function getLanguages(properties) {
  if (!Array.isArray(properties['wof:lang_x_official'])) {
    return [];
  }
  return properties['wof:lang_x_official']
    .filter(l => (typeof l === 'string' && l.length === 3))
    .map(l => l.toLowerCase());
}
function getLanguages ( properties ) { if ( ! Array . isArray ( properties [ 'wof:lang_x_official' ] ) ) { return [ ] ; } return properties [ 'wof:lang_x_official' ] . filter ( l => ( typeof l === 'string' && l . length === 3 ) ) . map ( l => l . toLowerCase ( ) ) ; }
get an array of language codes spoken at this location
get an array of language codes spoken at this location