I have an array of four numbers, something like [597103978, 564784412, 590236070, 170889704]
and I need to make sure that the variance is no more than 10%, for example for the array above, the check must fail because of the number 170889704.
Can someone suggest me a good method how to do that is Javascript?
Thanks in advance!