decord/source/755_listCacheSet.js

23 lines
484 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 755
// Function ID: 756
2026-07-20 16:05:17 +00:00
// Name: listCacheSet
2026-07-29 08:29:29 +00:00
// Dependencies: [751]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 755 (listCacheSet)
2026-08-24 06:08:38 +00:00
import assocIndexOf from "assocIndexOf" /* 751 */;
2026-07-20 16:05:17 +00:00
export default function listCacheSet(arg0, arg1) {
const self = this;
const __data__ = this.__data__;
2026-08-24 06:08:38 +00:00
const tmp = assocIndexOf(__data__, arg0);
2026-07-20 16:05:17 +00:00
if (tmp < 0) {
self.size = self.size + 1;
const items = [arg0, arg1];
__data__.push(items);
} else {
__data__[tmp][1] = arg1;
}
return self;
};