Util fn in gun test file
This commit is contained in:
parent
b2576a8147
commit
48af24fd3d
1 changed files with 8 additions and 2 deletions
|
|
@ -34,6 +34,12 @@
|
|||
|
||||
const UPPER = 100
|
||||
|
||||
clearSet = (node) => {
|
||||
node.map().once((_, key) => {
|
||||
node.get(key).put(null)
|
||||
})
|
||||
}
|
||||
|
||||
put = async () => {
|
||||
const res = await fetch(`https://jsonplaceholder.typicode.com/posts`)
|
||||
/** @type {Array<any>} */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue