Professional Documents
Culture Documents
Hook Serializer
Hook Serializer
function serializeHook(hook) {
if (!hook.hookSource) return hook;
return {
...hook,
hookSource: {
...hook.hookSource,
fileName,
return (
hasOwnProperty('id') &&
hasOwnProperty('isStateEditable') &&
hasOwnProperty('name') &&
hasOwnProperty('subHooks') &&
hasOwnProperty('value') &&
// Don't re-process an already printed hook.
hasAbsoluteFileName(maybeHook)
);
}