mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-07 13:00:59 +08:00
Initial commit: NOFX AI Trading System
- Multi-AI competition mode (Qwen vs DeepSeek) - Binance Futures integration - AI self-learning mechanism - Professional web dashboard - Complete risk management system
This commit is contained in:
20
web/node_modules/recharts/es6/util/payload/getUniqPayload.js
generated
vendored
Normal file
20
web/node_modules/recharts/es6/util/payload/getUniqPayload.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import uniqBy from 'lodash/uniqBy';
|
||||
import isFunction from 'lodash/isFunction';
|
||||
|
||||
/**
|
||||
* This is configuration option that decides how to filter for unique values only:
|
||||
*
|
||||
* - `false` means "no filter"
|
||||
* - `true` means "use recharts default filter"
|
||||
* - function means "use return of this function as the default key"
|
||||
*/
|
||||
|
||||
export function getUniqPayload(payload, option, defaultUniqBy) {
|
||||
if (option === true) {
|
||||
return uniqBy(payload, defaultUniqBy);
|
||||
}
|
||||
if (isFunction(option)) {
|
||||
return uniqBy(payload, option);
|
||||
}
|
||||
return payload;
|
||||
}
|
||||
Reference in New Issue
Block a user