index.js
function(accountsError, accountsResult) {
        const fixedAccountsResult = accountsResult.slice(0);

        // if no error, fixed result
        if (!accountsError) {
          fixedAccountsResult.map(function(item) {
            return String(item.toLowerCase());
          });
        }

        // fire oldd callback with new fix
        oldCallback(accountsError, fixedAccountsResult);
      }
function(accountsError, accountsResult) {
        const fixedAccountsResult = accountsResult.slice(0);

        // if no error, fixed result
        if (!accountsError) {
          fixedAccountsResult.map(function(item) {
            return String(item.toLowerCase());
          });
        }

        // fire oldd callback with new fix
        oldCallback(accountsError, fixedAccountsResult);
      }
function ( accountsError , accountsResult ) { const fixedAccountsResult = accountsResult . slice ( 0 ) ; // if no error, fixed result if ( ! accountsError ) { fixedAccountsResult . map ( function ( item ) { return String ( item . toLowerCase ( ) ) ; } ) ; } // fire oldd callback with new fix oldCallback ( accountsError , fixedAccountsResult ) ; }
build fixed callback with lowercased accounts
build fixed callback with lowercased accounts