front-matter-markdown
Version:
get the config and toc object from the markdown string.
20 lines (15 loc) • 419 B
JavaScript
(function() {
var isFunction;
isFunction = require('util-ex/lib/is/type/function');
module.exports = function(nodes, type, aFilter) {
return nodes.filter(function(node) {
var result;
result = node && node.type === type;
if (result && isFunction(aFilter)) {
result = aFilter(node);
}
return result;
});
};
}).call(this);
//# sourceMappingURL=extract-type.js.map