src/transforms.js
function players (resp) {
  return base(resp).map(function (player) {
    var names = player.displayLastCommaFirst.split(", ").reverse();
    return {
      firstName: names[0].trim(),
      lastName: (names[1] ? names[1] : "").trim(),
      playerId: player.personId,
      teamId: player.teamId,
    };
  });
}
function players (resp) {
  return base(resp).map(function (player) {
    var names = player.displayLastCommaFirst.split(", ").reverse();
    return {
      firstName: names[0].trim(),
      lastName: (names[1] ? names[1] : "").trim(),
      playerId: player.personId,
      teamId: player.teamId,
    };
  });
}
function players ( resp ) { return base ( resp ) . map ( function ( player ) { var names = player . displayLastCommaFirst . split ( ", " ) . reverse ( ) ; return { firstName : names [ 0 ] . trim ( ) , lastName : ( names [ 1 ] ? names [ 1 ] : "" ) . trim ( ) , playerId : player . personId , teamId : player . teamId , } ; } ) ; }
todo make this work identical to update-players.js
todo make this work identical to update - players . js