UNPKG

react-carousel-query

Version:

A infinite carousel component made with react that handles the pagination for you.

14 lines (10 loc) 370 B
'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