UNPKG

yoastseo

Version:

Yoast client-side content analysis

21 lines (20 loc) 470 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; /** * Checks the tree for images. * * @param {Paper} paper The paper to check for images. * * @returns {Array} Array containing all images in the tree */ function _default(paper) { const tree = paper.getTree(); if (!tree) { return []; } return tree.findAll(node => node.name === "img"); } //# sourceMappingURL=getImagesInTree.js.map