This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Converts the time string into Date Object | |
| const timestamp = _time => Date.parse(_time) / 1000; | |
| /** | |
| * 1. group-by given keys | |
| * 2. sort the groups in ascending order for Time key | |
| * 3. filters duplicate entries with time difference < 60 seconds | |
| * | |
| * @param _array Array [required] | |
| * @param _function Function [required] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fetch = require('node-fetch'); | |
| const throttle = require('promise-ratelimit')(10000); | |
| const _baseUrl = 'https://api.trello.com/1'; | |
| const _listId = ''; | |
| const _labelId = ''; | |
| const _token = ''; | |
| const _key = ''; | |
| let array = []; |