checks if `conf` is the metadata for a single tutorial. * A tutorial's metadata has a property 'title' and/or a property 'children'. * @param {object} json - the object we want to test (typically from JSON.parse) * @returns {boolean} whether `json` could be the metadata for a tutorial.
(json)
| 20 | * @returns {boolean} whether `json` could be the metadata for a tutorial. |
| 21 | */ |
| 22 | function isTutorialJSON(json) { |
| 23 | // if conf.title exists or conf.children exists, it is metadata for a tutorial |
| 24 | return (hasOwnProp.call(json, 'title') || hasOwnProp.call(json, 'children')); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Root tutorial. |
no outgoing calls
no test coverage detected
searching dependent graphs…