decord/source/743_hashDelete.js

22 lines
385 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 743
// Function ID: 744
2026-07-20 16:05:17 +00:00
// Name: hashDelete
// Dependencies: []
2026-07-29 08:29:29 +00:00
// Module 743 (hashDelete)
2026-07-20 16:05:17 +00:00
export default function hashDelete(arg0) {
const self = this;
const hasItem = this.has(arg0);
if (hasItem) {
const __data__ = self.__data__;
2026-07-23 10:11:24 +00:00
delete tmp[tmp2];
2026-07-20 16:05:17 +00:00
}
let num = 0;
if (hasItem) {
num = 1;
}
self.size = self.size - num;
return hasItem;
};