const candidates = 'abcdefghijklmnopqrstuvwxyz' . split ( '' ) ; export function generateFreeIdentifier ( usedIdentifiers ) { return candidates . find ( _ => usedIdentifiers . indexOf ( _ ) < 0 ) ! ; }