source: node_modules/ramda-adjunct/lib/concatRight.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6/**
7 * Returns the result of concatenating the given lists or strings.
8 *
9 * Note: R.concat expects both arguments to be of the same type, unlike
10 * the native Array.prototype.concat method.
11 * It will throw an error if you concat an Array with a non-Array value.
12 * Dispatches to the concat method of the second argument, if present.
13 *
14 * @func concatRight
15 * @memberOf RA
16 * @since {@link https://char0n.github.io/ramda-adjunct/1.11.0|v1.11.0}
17 * @category List
18 * @sig [a] -> [a] -> [a]
19 * @sig String -> String -> String
20 * @param {Array|String} firstList The first list
21 * @param {Array|String} secondList The second list
22 * @return {Array|String} A list consisting of the elements of `secondList`
23 * followed by the elements of `firstList`.
24 * @see {@link http://ramdajs.com/docs/#concat|R.concat}
25 * @example
26 *
27 * RA.concatRight('ABC', 'DEF'); //=> 'DEFABC'
28 * RA.concatRight([4, 5, 6], [1, 2, 3]); //=> [1, 2, 3, 4, 5, 6]
29 * RA.concatRight([], []); //=> []
30 */
31var concatRight = (0, _ramda.flip)(_ramda.concat);
32var _default = concatRight;
33exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.