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