UNPKG

parallel.es

Version:
15 lines (14 loc) 456 B
/** * @module parallel */ /** */ "use strict"; /** * Tests if the given object is a serialized function call * @param potentialFunc a potentially serialized function call * @returns {boolean} true if it is a serialized function call, false otherwise */ function isSerializedFunctionCall(potentialFunc) { return !!potentialFunc && potentialFunc.______serializedFunctionCall === true; } exports.isSerializedFunctionCall = isSerializedFunctionCall;