Closed njsfield closed 7 years ago
fen = fen.split(' ')[0].split('').filter(x => /[a-z]/i.test(x));
Then mapped to array of objects...
{ color: 'w' piece: 'r', code: '♖' position: 'A1' }