2 ms·
And it’s not just about modification, it’s also not pure if you simply read data that is not passed into the function via parameters. Because in a pure function
by jb1991 4y ago
And it’s not just about modification, it’s also not pure if you simply read data that is not passed into the function via parameters. Because in a pure function, you don’t need to access anything, reading or writing, that is outside of the function itself.