UNPKG

micromark

Version:

small commonmark compliant markdown parser with positional info and concrete tokens

10 lines (8 loc) 160 B
export default miniflat function miniflat(value) { return value === null || value === undefined ? [] : 'length' in value ? value : [value] }