How to use the @putout/compare.compareAny function in @putout/compare

To help you get started, we’ve selected a few @putout/compare examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github coderaiser / putout / packages / engine-runner / lib / template / index.js View on Github external
return (path) => {
        log(rule, path.node);
        
        if (nodesExclude.length && compareAny(path, nodesExclude))
            return;
        
        if (nodesInclude.length && !compareAll(path, nodesInclude))
            return;
        
        fn(path);
    };
}

@putout/compare

compare AST-nodes according to 🦎 PutoutScript

MIT
Latest version published 26 days ago

Package Health Score

73 / 100
Full package analysis