src/core.js
function stringifyVal(val) {
  return JSON.stringify(
    val,
    (key, val) => {
      if (typeof val === 'function') {
        if (val.name) {
          return `[Function: ${val.name}]: ${val.toString()}`
        } else {
          return `[Function]: ${val.toString()}`
        }
      }
      return val
    },
    2
  )
}
function stringifyVal(val) {
  return JSON.stringify(
    val,
    (key, val) => {
      if (typeof val === 'function') {
        if (val.name) {
          return `[Function: ${val.name}]: ${val.toString()}`
        } else {
          return `[Function]: ${val.toString()}`
        }
      }
      return val
    },
    2
  )
}
function stringifyVal ( val ) { return JSON . stringify ( val , ( key , val ) => { if ( typeof val === 'function' ) { if ( val . name ) { return ` ${ val . name } ${ val . toString ( ) } ` } else { return ` ${ val . toString ( ) } ` } } return val } , 2 ) }
Used to stringify yielded values. Output includes functions
Used to stringify yielded values . Output includes functions