Closed pensierinmusica closed 9 years ago
It should be understood as an array of arrays, an array of objects....
@wdavidw I see, If you like I can do a PR to update the documentation and make it a bit more clear on this point :)
Regarding the JSON input, I imagine it needs to represent one of the other two cases (i.e. array of arrays, array of objects). Is this interpretation correct?
Thanks!
Please re-formulate the documentation. The JSON is an error, you can pass a string and eventually transform it from JSON to Object inside the provided callback (look at the "types" test.
Ok @wdavidw, thanks for the clarification. Should I generate a PR to make docs a bit more clear on this point? Cheers
yes please, i'll apply it
Hi,
I can't figure out how to make this module work with an object as input. According to the documentation it should "Accept object, array or JSON as input and output".
Let's take this simple code:
When
var input = [[1,2,3], ['a','b','c']];
The console prints:
Which seems perfectly fine. Unfortunately though when
The console prints:
It looks like the function is not accepting an object as input. Any idea why?
Thanks!