This commit is contained in:
9
node_modules/micromark/lib/util/miniflat.mjs
generated
vendored
Normal file
9
node_modules/micromark/lib/util/miniflat.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export default miniflat
|
||||
|
||||
function miniflat(value) {
|
||||
return value === null || value === undefined
|
||||
? []
|
||||
: 'length' in value
|
||||
? value
|
||||
: [value]
|
||||
}
|
||||
Reference in New Issue
Block a user