Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

aulme/pick-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pick-function

Find functions in a library based on inputs and outputs. Pick-function brute forces arguments provided in different orders agains all functions in the library until it finds specified output.

Installation

npm install pick-function --save

Usage

To find a function that given params x and y returns z in library L, do pick(L, [x, y], z)

As a more realistic scenario, to find a function that adds numbers in Ramda library (R), you can do:

require('pick-function').default(R, [3, 7], 10) -> ['add']

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published