'use strict';

const plotlyMediaType = 'application/vnd.plotly.v1+json';
const isPlotlyObject = (node) => {
  return (typeof node === 'object' &&
    node !== null &&
    'mediaType' in node &&
    node.mediaType === plotlyMediaType);
};

exports.isPlotlyObject = isPlotlyObject;
exports.plotlyMediaType = plotlyMediaType;
