code: function getType(value) {
    if (Array.isArray(value)) {
      return 'array';
    } else if (value === null) {
      return 'null';
    }
    return typeof value === 'undefined' ? 'undefined' : _typeof(value);
  }
docs: ----------------------------------------------------------------------------- Helper Functions 
  @param {any} value - variable to detect type of.
  @return {string} - typeof the value param, but 'array' for arrays and 'null' for nulls.