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
Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348
lines 1–10why, one step back1export const getOptions = ({type, fdNumber}) => ({2 verbose: setFdSpecific(3 fdNumber,4 (verboseLine, verboseObject) => verboseObject.type === type ? verboseLine : undefined,5 ),6});78const setFdSpecific = (fdNumber, option) => fdNumber === undefined9 ? option10 : {[fdNumber]: option};