securityos/node_modules/eslint-plugin-unicorn/rules/utils/is-on-same-line.js

8 lines
170 B
JavaScript

'use strict';
function isOnSameLine(nodeOrTokenA, nodeOrTokenB) {
return nodeOrTokenA.loc.start.line === nodeOrTokenB.loc.start.line;
}
module.exports = isOnSameLine;