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

8 lines
144 B
JavaScript

'use strict';
module.exports = (node1, node2) =>
node1
&& node2
&& node1.range[0] === node2.range[0]
&& node1.range[1] === node2.range[1];