diff --git a/packages/providence-analytics/src/program/analyzers/helpers/Analyzer.js b/packages/providence-analytics/src/program/analyzers/helpers/Analyzer.js index 97d8f4e7a..50643d11d 100644 --- a/packages/providence-analytics/src/program/analyzers/helpers/Analyzer.js +++ b/packages/providence-analytics/src/program/analyzers/helpers/Analyzer.js @@ -48,7 +48,7 @@ async function analyzePerAstEntry(projectData, astAnalysis) { } /** - * @desc This method ensures that the result returned by an analyzer always has a consitent format, + * @desc This method ensures that the result returned by an analyzer always has a consistent format. * By returning the configuration for the queryOutput, it will be possible to run later queries * under the same circumstances * @param {array} queryOutput diff --git a/packages/providence-analytics/src/program/utils/async-array-utils.js b/packages/providence-analytics/src/program/utils/async-array-utils.js index 27312e8f6..a188899b7 100644 --- a/packages/providence-analytics/src/program/utils/async-array-utils.js +++ b/packages/providence-analytics/src/program/utils/async-array-utils.js @@ -1,7 +1,7 @@ /** * @desc Readable way to do an async forEach - * Since predictability mathers, all array items will be handled in a queue; - * one after anotoher + * Since predictability matters, all array items will be handled in a queue, + * one after another * @param {array} array * @param {function} callback */ @@ -13,8 +13,8 @@ async function aForEach(array, callback) { } /** * @desc Readable way to do an async forEach - * Since predictability mathers, all array items will be handled in a queue; - * one after anotoher + * If predictability does not matter, this method will traverse array items concurrently, + * leading to a better performance * @param {array} array * @param {function} callback */ @@ -23,7 +23,7 @@ async function aForEachNonSequential(array, callback) { } /** * @desc Readable way to do an async map - * Since predictability is crucial for a map, all array items will be handled in a queue; + * Since predictability is crucial for a map, all array items will be handled in a queue, * one after anotoher * @param {array} array * @param {function} callback