custom-event.js
This file
Path
test/fixtures/nested/custom-event.js
3 lines · 179 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–3why, one step back1export const getOptions = ({type, eventProperty}) => ({2 verbose: (verboseLine, verboseObject) => verboseObject.type === type ? `${verboseObject[eventProperty]}` : undefined,3});