1018 | JavaScript 1 Line Solution
Runtime: 72 ms, faster than 59.00% of JavaScript online submissions\n> Memory Usage: 38.2 MB, less than 92.31% of JavaScript online submissions\n\nNot the faste
> Runtime: **72 ms**, faster than *59.00%* of JavaScript online submissions\n> Memory Usage: **38.2 MB**, less than *92.31%* of JavaScript online submissions\n\nNot the fastest.\n\n```\n/**\n * @param {number[]} A\n * @param {number} acc\n * @return {boolean[]}\n */\nconst prefixesDivBy5 = (A, acc = 0) => A.map(d => !(acc = (acc * 2 + d) % 5));\n```
['JavaScript']