Files
30-seconds-of-code/node_modules/hast-util-to-html/lib/omission/util/first.js
2019-08-20 15:52:05 +02:00

11 lines
210 B
JavaScript

'use strict'
var after = require('./siblings').after
module.exports = first
/* Get the first child in `parent`. */
function first(parent, includeWhiteSpace) {
return after(parent, -1, includeWhiteSpace)
}