_.flatten shallow parameter doesn't work as expected

The documentation says that _.flatten() should flatten the first level of the array when the "shallow" parameter is set to true. Instead of that, it was doing nothing but simply returning the input array. Now it works as documented, for example {1, {2, {3}}} becomes {1, 2, {3}}