UNPKG

oidc-provider

Version:

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

12 lines (9 loc) 225 B
/* eslint-disable no-param-reassign */ export default (object, predicate) => { Object.entries(object).forEach(([key, value]) => { if (predicate(value, key)) { delete object[key]; } }); return object; };