warps
Gets the number of warps in a drawdown
Parameters​
Returns​
number
The number of warps or 0 if the provided drawdown is null or empty
Implementation​
let n = warps(d);
n will be assigned the number of warps in d. This function is shorthand that can be used instead of calling d[0].length.