ldapjs authenticate a user and check if user is part of one of ldap group

I am trying to authenticate a user in node.js using ldapjs library: https://www.npmjs.com/package/ldapjs

My this code works well:

const client = i_ldap.createClient({
         url: ldapServer
      });    
client.bind(username, password, (err: any) => {
             client.unbind();
             if (err) {
                e({ username, error: 'invalid' });
             } else {
                console.log("Login success")
             }
          });

Along with the authentication, I would like to check if the user is part of a ldap group ex. "fte-employees". I see there are some options like using memberOf field. But not sure exactly how we can use it. Can anyone please help me here?