securityos/node_modules/eslint-plugin-unicorn/rules/utils/has-same-range.js

8 lines
144 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
module.exports = (node1, node2) =>
node1
&& node2
&& node1.range[0] === node2.range[0]
&& node1.range[1] === node2.range[1];