INNER CODE UNIT · JavaScript

getDataType

SamuelTallet/MongoDB-PHP-GUI · source/js/jsonViewModified.js:229

  function getDataType(val) {
    var type = _typeof(val);

    if (Array.isArray(val)) type = 'array';
    if (val === null) type = 'null';
    return type;
  }

  function traverseTree(node, callback) {
    callback(node);

    if (node.children.length > 0) {
      node.children.forEach(function (child) {
        traverseTree(child, callback);
      });
    }
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…