iterateCacheRefs
Call Signature
Section titled “Call Signature”iterateCacheRefs(
cache
,cb
):boolean
Defined in: obsidian.d.ts:2136
Iterate links and embeds. If callback returns true, the iteration process will be interrupted.
Parameters
Section titled “Parameters”(ref
) => boolean
| void
Returns
Section titled “Returns”boolean
true if callback ever returns true, false otherwise.
Call Signature
Section titled “Call Signature”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.
Parameters
Section titled “Parameters”The cache to iterate.
(ref
) => boolean
| void
The callback to call for each link or embed.
Returns
Section titled “Returns”boolean
true
if callback ever returns true
, false
otherwise.
Example
Section titled “Example”iterateCacheRefs(cache, (ref) => { console.log(ref); return true;});@official@deprecated - Use {@link iterateRefs} instead.