...
Last active
April 24, 2020 16:55
-
-
Save maxwellb/a8bed49a6f2c36e987ac368f60be18a6 to your computer and use it in GitHub Desktop.
JSDoc snippets
This file contains 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
/** | |
* Accumulator type | |
* @typedef {*} TAccumulator | |
*/ | |
/** | |
* Array type | |
* @typedef {*} TArray | |
*/ | |
/** | |
* Array reducer | |
* @callback reducer | |
* @param {TAccumulator} accumulator | |
* @param {TArray} currentValue | |
* @param {number} [index] | |
* @param {Array.<TArray>} [array] | |
* @returns {TAccumulator} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment