Skip to content

iterateCacheRefs

iterateCacheRefs(cache, cb): boolean

Defined in: obsidian.d.ts:2136

Iterate links and embeds. If callback returns true, the iteration process will be interrupted.

CachedMetadata

(ref) => boolean | void

boolean

true if callback ever returns true, false otherwise.

iterateCacheRefs(cache, cb): boolean

Defined in: src/obsidian/augmentations/functions.d.ts:280

Iterate links and embeds. If callback returns true, the iteration process will be interrupted.

CachedMetadata

The cache to iterate.

(ref) => boolean | void

The callback to call for each link or embed.

boolean

true if callback ever returns true, false otherwise.

iterateCacheRefs(cache, (ref) => {
console.log(ref);
return true;
});
@official
@deprecated - Use {@link iterateRefs} instead.