JSFiddle - React, Tailwind, and code Playground

by Artem

JavaScript

'use strict';

const compose = (...funcs) => 
	funcs.reduce(
		(prevF, nextF) => (...args) => prevF(nextF(...args)),
		arg => arg
	);
	
	
/*
	fn1, fn2, fn3
	fnX = arg => arg

*/