custom-print.js
This file
Path
test/fixtures/nested/custom-print.js
10 lines · 288 bytes · JavaScript
Last changed by
Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348
History of this fileTake it
1234567891011export const getOptions = ({type, fdNumber}) => ({ verbose: setFdSpecific( fdNumber, (verboseLine, verboseObject) => verboseObject.type === type ? verboseLine : undefined, ),});
const setFdSpecific = (fdNumber, option) => fdNumber === undefined ? option : {[fdNumber]: option};