decord/source/746_hashSet.js
2026-08-24 06:08:38 +00:00

25 lines
466 B
JavaScript

// Module ID: 746
// Function ID: 747
// Name: hashSet
// Dependencies: [736]
// Module 746 (hashSet)
import getNative from "getNative" /* 736 */;
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;
if (!getNative) {
let str = arg1;
} else {
str = "__lodash_hash_undefined__";
}
__data__[arg0] = str;
return self;
};