UNPKG

@magic/core

Version:

@magic core. generate static pages and serverless lambdas. ~5kb client boilerplate.

14 lines (11 loc) 273 B
export const isHashedUrl = (list, link) => { if (!link.includes('#')) { return false } const [url, hash] = link.split('#') const page = list.find(page => page.name === url) if (!page) { return false } return page.rendered.includes(`id="${hash}"`) }