UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

10 lines (8 loc) 269 B
'use strict'; var fails = require('./_fails'); module.exports = function (method, arg) { return !!method && fails(function () { // eslint-disable-next-line no-useless-call arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null); }); };