|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
492 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const flatten = require('../../array/flatten.js');
|
|---|
| 6 | const flowRight$1 = require('../../function/flowRight.js');
|
|---|
| 7 |
|
|---|
| 8 | function flowRight(...funcs) {
|
|---|
| 9 | const flattenFuncs = flatten.flatten(funcs, 1);
|
|---|
| 10 | if (flattenFuncs.some(func => typeof func !== 'function')) {
|
|---|
| 11 | throw new TypeError('Expected a function');
|
|---|
| 12 | }
|
|---|
| 13 | return flowRight$1.flowRight(...flattenFuncs);
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | exports.flowRight = flowRight;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.