utilizes.returns
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i utilizes.returns

Weekly Downloads

1

Version

1.2.3

License

MIT

Unpacked Size

79.8 kB

Total Files

5

Last publish

Collaborators

  • natqe3