Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorflow/tfjs
/ push
Method
push
tfjs-data/src/util/growing_ring_buffer.ts:35–40 ·
view source on GitHub ↗
(value: T)
Source
from the content-addressed store, hash-verified
33
}
34
35
override push(value: T) {
36
if
(super.isFull()) {
37
this.expand();
38
}
39
super.push(value);
40
}
41
42
override unshift(value: T) {
43
if
(super.isFull()) {
Callers
nothing calls this directly
Calls
2
expand
Method · 0.95
isFull
Method · 0.45
Tested by
no test coverage detected