shift Method

Purge the least recently used (oldest) entry from the cache.

shift(): undefined | [K, V]

Returns - undefined | [K, V]

The removed entry or undefined if the cache was empty.

Defined in

Last Updated: 12 June, 2024