flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
20
VISUALIZACION/node_modules/d3-array/src/max.js
generated
vendored
Executable file
20
VISUALIZACION/node_modules/d3-array/src/max.js
generated
vendored
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
export default function max(values, valueof) {
|
||||
let max;
|
||||
if (valueof === undefined) {
|
||||
for (const value of values) {
|
||||
if (value != null
|
||||
&& (max < value || (max === undefined && value >= value))) {
|
||||
max = value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
let index = -1;
|
||||
for (let value of values) {
|
||||
if ((value = valueof(value, ++index, values)) != null
|
||||
&& (max < value || (max === undefined && value >= value))) {
|
||||
max = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return max;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue