index.js
function datesOfToday () {
  const ret = {}

  ret.year = String(new Date().getFullYear())
  ret.month = prefix(String(new Date().getMonth()))
  ret.day = prefix(String(new Date().getDate()))
  ret.date = [ret.year, ret.month, ret.day].join('-')

  return ret
}
function datesOfToday () {
  const ret = {}

  ret.year = String(new Date().getFullYear())
  ret.month = prefix(String(new Date().getMonth()))
  ret.day = prefix(String(new Date().getDate()))
  ret.date = [ret.year, ret.month, ret.day].join('-')

  return ret
}
function datesOfToday ( ) { const ret = { } ret . year = String ( new Date ( ) . getFullYear ( ) ) ret . month = prefix ( String ( new Date ( ) . getMonth ( ) ) ) ret . day = prefix ( String ( new Date ( ) . getDate ( ) ) ) ret . date = [ ret . year , ret . month , ret . day ] . join ( '-' ) return ret }
get today's date null -> null
get today s date null - > null