@antv/g2
Version:
the Grammar of Graphics in Javascript
7 lines (6 loc) • 304 B
TypeScript
/**
*
* @description Converts a random format array into a regular two-dimensional array
* @example ['a', 'b', ['c', value]] => [['a', defaultValue], ['b', defaultValue], ['c', value]]
*/
export declare function normalizeFields(fields: any[], defaultValue: boolean | ((d: any) => boolean)): any[][];