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