"use strict"; exports.__esModule = true; exports["default"] = void 0; var _ramda = require("ramda"); /** * Returns the elements of the given list or string (or object with a slice method) * to toIndex (exclusive). * Dispatches to the slice method of the second argument, if present. * * @func sliceTo * @memberOf RA * @since {@link https://char0n.github.io/ramda-adjunct/1.16.0|v1.16.0} * @category List * @sig Number -> [a] -> [a] * @param {number} toIndex The end index (exclusive) * @param {Array|string} list The list or string to slice * @return {Array|string} The sliced list or string * @see {@link http://ramdajs.com/docs/#slice|R.slice}, {@link RA.sliceFrom|sliceFrom} * @example * * RA.sliceTo(2, [1, 2, 3]); //=> [1, 2] */ var sliceTo = (0, _ramda.slice)(0); var _default = sliceTo; exports["default"] = _default;