UNPKG

@strongnguyen/oidc-provider

Version:

OAuth 2.0 Authorization Server implementation for Node.js with OpenID Connect

10 lines (7 loc) 193 B
module.exports = (object, iteratee) => { const result = {}; Object.entries(object).forEach(([key, value]) => { result[iteratee(value, key, object)] = value; }); return result; };