I thought .chunk method should return something other



When I was trying to create a method chunk, in the project Lodash Library, it said that it should return %D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA
But, as I now, method chunk returns an array, which contains all previously created array chunks, so, why do not we have ‘array chunks’ inside of the array? Just pairs of numbers?

That’s some rather “special” output/formatting.
Those tests are really crude for some reason.

Better if you call your functions yourself and see how they behave.

Perhaps you’re returning the wrong value and because of javascript’s weak typing and the quality of that test code, things get converted in odd ways and that’s the strings that came out at the end of that mess. (so yeah, definitely do it yourself to get a better look)

An example of weird outcomes you can get in javascript when not taking care to do things properly:

> [1] + [3]
'13'        <- yeah, that's a string.