nicolaspanel / numjs

Like NumPy, in JavaScript
MIT License
2.4k stars 184 forks source link

README is misleading wrt array creation ? #150

Open parmentelat opened 3 months ago

parmentelat commented 3 months ago

specifically in this section: https://github.com/nicolaspanel/numjs?tab=readme-ov-file#array-creation I can see this

> var a = nj.uint8([1,2,3]);

this won't work for me and instead I need to do

a = nj.array([1,2,3], 'uint8');

so either I misunderstood or messed up something, or the README should be amended to reflect the actual interface