clamp

WebJar for clamp

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

clamp
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

clamp
WebJar for clamp
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/hughsk/clamp

Download clamp

How to add to project

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

clamp frozen

Clamp a value between two other values. It's as simple as modules come - saving keystrokes because I've had to write this function too many times.

Usage

clamp

clamp(value, a, b)

Returns value, if it is between a and b. Otherwise, returns the number it's gone past.

License

MIT. See LICENSE.md for details.

Versions

Version
1.0.1