own-or

WebJar for own-or

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

own-or
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

own-or
WebJar for own-or
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/isaacs/own-or

Download own-or

How to add to project

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

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.

own-or

Either use the object's own property, or a fallback

Useful for setting default values.

API

ownOr(object, key, fallback)

USAGE

var ownOr = require('own-or')

var config = { some: 'configs' }

var foo = ownOr(config, 'bar', 'baz') // 'baz'
var some = ownOr(config, 'some', 'quux') // 'configs'

Versions

Version
1.0.0