utilizes.returns

Invoke set of functions with same arguments at ones, and get the results.

Usage no npm install needed!

<script type="module">
  import utilizesReturns from 'https://cdn.skypack.dev/utilizes.returns';
</script>

README

returns

Invoke set of functions with same arguments at ones, and get the results.

Usage: returns<F>(functions: Array<F>, ...args: ArgumentsType<F>): Array<ReturnType<F>>

import { returns } from 'utilizes.returns'

const
    add = (a, b) => a + b
    subtract = (a, b)=> a - b

returns([add, subtract], 2,1)
// Output: [3,1]

This module exported from utilizes project.