is-arrow-function-body.js 178 B

1234567
  1. 'use strict';
  2. function isArrowFunctionBody(node) {
  3. return node.parent.type === 'ArrowFunctionExpression' && node.parent.body === node;
  4. }
  5. module.exports = isArrowFunctionBody;