react-carousel-query
Version:
A infinite carousel component made with react that handles the pagination for you.
11 lines (9 loc) • 329 B
JavaScript
;
var fails = require('../internals/fails');
module.exports = function (METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !!method && fails(function () {
// eslint-disable-next-line no-useless-call -- required for testing
method.call(null, argument || function () { return 1; }, 1);
});
};