decord/source/746_hashSet.js

26 lines
466 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 746
// Function ID: 747
2026-07-20 16:05:17 +00:00
// Name: hashSet
2026-07-29 08:29:29 +00:00
// Dependencies: [736]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 746 (hashSet)
2026-08-24 06:08:38 +00:00
import getNative from "getNative" /* 736 */;
2026-07-20 16:05:17 +00:00
export default function hashSet(arg0, arg1) {
const self = this;
({ __data__, size } = this);
let num = 1;
if (this.has(arg0)) {
num = 0;
}
self.size = size + num;
2026-08-24 06:08:38 +00:00
if (!getNative) {
2026-07-20 16:05:17 +00:00
let str = arg1;
} else {
str = "__lodash_hash_undefined__";
}
__data__[arg0] = str;
return self;
};