is-on-same-line.js 170 B

1234567
  1. 'use strict';
  2. function isOnSameLine(nodeOrTokenA, nodeOrTokenB) {
  3. return nodeOrTokenA.loc.start.line === nodeOrTokenB.loc.start.line;
  4. }
  5. module.exports = isOnSameLine;