mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 15:11:06 +03:30
14 lines
370 B
JavaScript
Vendored
14 lines
370 B
JavaScript
Vendored
'use strict'
|
|
|
|
const isNamedCallback = require('./is-named-callback')
|
|
|
|
function isCallingBack(node, exceptions) {
|
|
const isCallExpression = node.type === 'CallExpression'
|
|
const callee = node.callee || {}
|
|
const nameIsCallback = isNamedCallback(callee.name, exceptions)
|
|
const isCB = isCallExpression && nameIsCallback
|
|
return isCB
|
|
}
|
|
|
|
module.exports = isCallingBack
|