src/index.js
function patchUser(user, patchToUser) {
      return users.patch(user.id || user._id, patchToUser, {}) // needs users from closure
        .then(() => Object.assign(user, patchToUser));
    }
function patchUser(user, patchToUser) {
      return users.patch(user.id || user._id, patchToUser, {}) // needs users from closure
        .then(() => Object.assign(user, patchToUser));
    }
function patchUser ( user , patchToUser ) { return users . patch ( user . id || user . _id , patchToUser , { } ) // needs users from closure
 . then ( ( ) => Object . assign ( user , patchToUser ) ) ; }
Helpers requiring this closure
Helpers requiring this closure