You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/src/compiler/compile/render_dom/wrappers/shared/is_head.js

12 lines
220 B

/**
* @param {import("estree").Node} node
*/
export function is_head(node) {
return (
node &&
node.type === 'MemberExpression' &&
node.object['name'] === '@_document' &&
node.property['name'] === 'head'
);
}