fp.js
function splitDots(list) {
    var result = [];
    list.forEach(function (x) {
      if (typeof x === 'string') {
        x.split('.').forEach(function (part) {
          result.push(part);
        });
      } else {
        result.push(x);
      }
    });
    return result;
  }
function splitDots(list) {
    var result = [];
    list.forEach(function (x) {
      if (typeof x === 'string') {
        x.split('.').forEach(function (part) {
          result.push(part);
        });
      } else {
        result.push(x);
      }
    });
    return result;
  }
function splitDots ( list ) { var result = [ ] ; list . forEach ( function ( x ) { if ( typeof x === 'string' ) { x . split ( '.' ) . forEach ( function ( part ) { result . push ( part ) ; } ) ; } else { result . push ( x ) ; } } ) ; return result ; }
['a.b.c', 'd'] -> ['a', 'b', 'c', 'd']
[ a . b . c d ] - > [ a b c d ]