UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

14 lines 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Slice = void 0; /** * Slice data between `start` ~ `end`. * Same with https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice */ const Slice = (options) => { const { start, end } = options; return (data) => data.slice(start, end); }; exports.Slice = Slice; exports.Slice.props = {}; //# sourceMappingURL=slice.js.map