santiment / SantimentMobile

Mobile MVP for Santiment project http://santiment.net
16 stars 3 forks source link

Update code to incorporate ES6 default parameters #57

Closed ghost closed 7 years ago

ghost commented 7 years ago
export const getCandles = (
    symbols: string[],
    startDate: Date = moment().subtract(180, 'days').toDate(),
    endDate: Date = moment().toDate(),
    candlestickPeriod: number = candlestickPeriods.oneDay
): any => {
    // function body
}
ghost commented 7 years ago

@santiment-admin Done.