MCPcopy Create free account
hub / github.com/SpookyJS/SpookyJS / serializeFunctions

Function serializeFunctions

lib/spooky.js:63–71  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

61}
62
63function serializeFunctions(x) {
64 if (_.isFunction(x)) {
65 x = x.toString();
66 } else if (isFunctionTuple(x)) {
67 x[1] = x[1].toString();
68 }
69
70 return x;
71}
72
73// serialize function values recursively
74function serializeMethods(o) {

Callers 2

serializeMethodsFunction · 0.85
spooky.jsFile · 0.85

Calls 1

isFunctionTupleFunction · 0.85

Tested by

no test coverage detected