INNER CODE UNIT · TypeScript

F

zhenorzz/goploy · web/src/components/JSONTree/index.ts:98

      const F = function () {}

      return function (Child, Parent) {
        F.prototype = Parent.prototype
        Child.prototype = new F()
        Child.prototype.constructor = Child
      }
    })(),

    /*
     * Checks for a valid type of root node*
     *
     * @param {any type} jsonObj - a value for root node
     * @returns {boolean} - true for an object or an array, false otherwise
     */
    isValidRoot: function (jsonObj) {
      switch (utils.getType(jsonObj)) {
        case 'object':

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…