MCPcopy
hub / github.com/vuejs/devtools-v6 / reviveSet

Function reviveSet

packages/shared-utils/src/util.ts:359–367  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

357}
358
359export function reviveSet(val) {
360 const result = new Set()
361 const list = val._custom.value
362 for (let i = 0; i < list.length; i++) {
363 const value = list[i]
364 result.add(revive(value))
365 }
366 return result
367}
368
369export function getCustomBigIntDetails(val) {
370 const stringifiedBigInt = BigInt.prototype.toString.call(val)

Callers 1

reviveFunction · 0.85

Calls 2

reviveFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected