8 lines
178 B
JavaScript
8 lines
178 B
JavaScript
|
'use strict';
|
||
|
|
||
|
function isArrowFunctionBody(node) {
|
||
|
return node.parent.type === 'ArrowFunctionExpression' && node.parent.body === node;
|
||
|
}
|
||
|
|
||
|
module.exports = isArrowFunctionBody;
|