UNPKG
webdriverio-automation
Version:
latest (1.0.0)
1.0.0
WebdriverIO-Automation android ios project
webdriverio-automation
/
node_modules
/
moment
/
src
/
lib
/
utils
/
defaults.js
11 lines
(10 loc)
•
203 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// Pick the first defined of two or three arguments.
export
default
function
defaults
(
a, b, c
) {
if
(a !=
null
) {
return
a; }
if
(b !=
null
) {
return
b; }
return
c; }