angular-cn/aio/tools/transforms/links-package/services/disambiguators/disambiguateByDeprecated.js

4 lines
150 B
JavaScript

module.exports = function disambiguateByDeprecated() {
return (alias, originatingDoc, docs) => docs.filter(doc => doc.deprecated === undefined);
};