UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

10 lines 283 B
import { identity } from '../utils/helper'; /** * Map transform by function. */ export const Map = (options) => { const { callback = identity } = options; return (data) => (Array.isArray(data) ? data.map(callback) : data); }; Map.props = {}; //# sourceMappingURL=map.js.map