MCPcopy Create free account
hub / github.com/plotly/plotly.js / assertDescending

Function assertDescending

test/jasmine/tests/lib_test.js:2939–2946  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

2937 }
2938
2939 function assertDescending(array) {
2940 for (var i = 1; i < array.length; i++) {
2941 if (array[i] < array[i - 1]) {
2942 expect(array[i]).not.toBeGreaterThan(array[i - 1]);
2943 break;
2944 }
2945 }
2946 }
2947
2948 function _sort(array, sortFn) {
2949 var arrayOut = Lib.sort(array, sortFn);

Callers 2

descendingFunction · 0.85
lib_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…