Remove expired keys from the previous list.
previous
Keys whose expiresAt is before now are pruned. The current key is never pruned regardless of its expiry.
expiresAt
now
The key ring to prune.
Optional
Reference time (defaults to new Date()).
new Date()
A new key ring with expired keys removed.
ring = pruneExpiredKeys(ring); Copy
ring = pruneExpiredKeys(ring);
Remove expired keys from the
previouslist.Keys whose
expiresAtis beforenoware pruned. The current key is never pruned regardless of its expiry.