argsarray

WebJar for argsarray

License

License

GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

argsarray
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

argsarray
WebJar for argsarray
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/calvinmetcalf/argsarray

Download argsarray

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/argsarray/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>argsarray</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/argsarray/
implementation 'org.webjars.npm:argsarray:0.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/argsarray/
implementation ("org.webjars.npm:argsarray:0.0.1")
'org.webjars.npm:argsarray:jar:0.0.1'
<dependency org="org.webjars.npm" name="argsarray" rev="0.0.1">
  <artifact name="argsarray" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='argsarray', version='0.0.1')
)
libraryDependencies += "org.webjars.npm" % "argsarray" % "0.0.1"
[org.webjars.npm/argsarray "0.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.

args array Build Status

npm install argsarray

simple library to treat function arguments as an array without leaking the arguments object (which is bad), based on something I wrote for PouchDB.

Simple wrap a function in this and the function will always be called with an array of the arguments it was called with.

var myFunc = argsarray(function myFunc(args) {
  console.log(args);
});

myFunc(a, b, c);
//[a, b, c];

#license

wtfpl

Versions

Version
0.0.1