UNPKG

jsonld-signatures-merkleproof2019

Version:

A jsonld signature implementation to support MerkleProof2019 verification in Verifiable Credential context

8 lines (7 loc) 205 B
export function removeEntry (map: any[], key: any): void { const stepIndex = map.findIndex(entry => entry === key); if (stepIndex > -1) { // delete by reference map.splice(stepIndex, 1); } }