repo.or.cz
/
openemr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Brought in another asset for Ray's eye form: moment
[openemr.git]
/
public
/
assets
/
moment-2-13-0
/
src
/
lib
/
utils
/
defaults.js
blob
45c5e8794247286e8ee4399d47e75dadd4ea2aad
1
// Pick the first defined of two or three arguments.
2
export default function defaults(a, b, c) {
3
if (a != null) {
4
return a;
5
}
6
if (b != null) {
7
return b;
8
}
9
return c;
10
}