shift Method

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

shift(): [K, V] | undefined

Returns - The removed entry or undefined if the cache was empty.

Defined in

Last Updated: 23 April, 2020