Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tensorflow/tfjs
/ unshift
Method
unshift
tfjs-data/src/util/growing_ring_buffer.ts:42–47 ·
view source on GitHub ↗
(value: T)
Source
from the content-addressed store, hash-verified
40
}
41
42
override unshift(value: T) {
43
if
(super.isFull()) {
44
this.expand();
45
}
46
super.unshift(value);
47
}
48
49
/**
50
* Doubles the capacity of the buffer.
Callers
nothing calls this directly
Calls
2
expand
Method · 0.95
isFull
Method · 0.45
Tested by
no test coverage detected