chain-function

WebJar for chain-function

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

chain-function
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

chain-function
WebJar for chain-function
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jquense/chain-function

Download chain-function

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/chain-function/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>chain-function</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/chain-function/
implementation 'org.webjars.npm:chain-function:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/chain-function/
implementation ("org.webjars.npm:chain-function:1.0.1")
'org.webjars.npm:chain-function:jar:1.0.1'
<dependency org="org.webjars.npm" name="chain-function" rev="1.0.1">
  <artifact name="chain-function" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='chain-function', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "chain-function" % "1.0.1"
[org.webjars.npm/chain-function "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

chain-function

chain a bunch of functions

npm i chain-function
 function foo() {
   console.log('foo')
 }
 
 function baz() {
   console.log('bar')
 }
 
 var foobar = chain(foo, bar)
 
 foobar() // "bar" "foo"
 
 //handles empty values just fine
 foobar = chain(foo, null, bar, undefined)
 
 foobar() // "bar" "foo"

Versions

Version
1.0.1
1.0.0