numjs
numjs copied to clipboard
typescript problem with indexing
All indexing methods in the typescript header have the signature (...args: number[]).
The docs states that you can write arr.pick(null, 1) to select the second column, but null is not a number and a code with that line doesn't compile in typescript.
I suggest to change the signature with (...args: (number | null)[]) (same consideration should be made also for slice method).