projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1111b2efa0eeeced2cfd24eba73df189effb1660
[platform/framework/web/crosswalk-tizen.git]
/
1
var toArray = require('./toArray');
2
var find = require('../array/find');
3
4
/**
5
* Return first non void argument
6
*/
7
function defaults(var_args){
8
return find(toArray(arguments), nonVoid);
9
}
10
11
function nonVoid(val){
12
return val != null;
13
}
14
15
module.exports = defaults;
16
17