This commit is contained in:
17
node_modules/hast-util-to-mdast/lib/util/list-items-spread.js
generated
vendored
Normal file
17
node_modules/hast-util-to-mdast/lib/util/list-items-spread.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = spread
|
||||
|
||||
function spread(children) {
|
||||
var index = -1
|
||||
|
||||
if (children.length > 1) {
|
||||
while (++index < children.length) {
|
||||
if (children[index].spread) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user