So this line really stood out. πππ
So to work it out, I entered the avatar state to unlock my chakra
You did a good job to make light of the topic. For the getPositiveAndSquare function, you can actually substitute a pipe of filter and map into a single reduce.
const getPositiveAndSquare = arr => {
return arr.reduce((acc, cur) => {
if (cur > 0) {
acc.push(cur * cur);
}
return acc;
}, []);
};
console.log(getPositiveAndSquare([2, 3, 4, 0, 2]));
Though I have no idea of the solidity you talked about. π