nbviewer.js
nbviewer.js copied to clipboard
Handle all string/array enums correctly
There are quite a few fields that may be plain strings or arrays of strings - we handle them in various ways - either via typeofs or Array.isArray. We should have a helper that consumes a variable of type string|array[string] and outputs a string. That should solve pretty much all of these cases.
Last time this surfaced was in #44.