# All files / lib/serialization function.js

100% Statements 5/5
100% Branches 2/2
100% Functions 2/2
100% Lines 5/5

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15

    1x

    1x
    2065x

    1x
    2126x
     'use strict';

    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    var functionToJson = exports.functionToJson = function functionToJson(name) {
      return {
        __ipfsPostMsgProxyType: 'Function',
        name: name
      };
    };

    var isFunctionJson = exports.isFunctionJson = function isFunctionJson(obj) {
      return obj && obj.__ipfsPostMsgProxyType === 'Function';
    };