UNPKG

oidc-provider

Version:

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

10 lines (9 loc) 227 B
export default (array, predicate) => { const remove = []; array.forEach((value, index) => { if (predicate(value, index, array)) { remove.unshift(index); } }); remove.forEach((i) => array.splice(i, 1)); };