remove-member-expression-property.js 376 B

1234567891011
  1. 'use strict';
  2. const {getParenthesizedRange} = require('../utils/parentheses.js');
  3. function removeMemberExpressionProperty(fixer, memberExpression, sourceCode) {
  4. const [, start] = getParenthesizedRange(memberExpression.object, sourceCode);
  5. const [, end] = memberExpression.range;
  6. return fixer.removeRange([start, end]);
  7. }
  8. module.exports = removeMemberExpressionProperty;