seantrant
4/10/2018 - 2:34 PM

object keys magic

objct keys magic

passed in args = { station: **, varyingName: **}

    let station       = args.station
    let propertyName  = Object.keys(args)[1]
    let propertyValue = args[Object.keys(args)[1]]
    console.log(args.station)
    console.log(args[Object.keys(args)[1]])
    console.log('ARGS B', Object.keys(args)[1])