forked from 0x2620/oxjs
less obscure Ox.map
This commit is contained in:
parent
33390069b9
commit
12cf77cef5
21 changed files with 125 additions and 101 deletions
|
|
@ -262,9 +262,7 @@ Ox.URL = function(options) {
|
|||
parts.push(constructFind(state.find));
|
||||
}
|
||||
}
|
||||
return '/' + Ox.map(parts, function(part) {
|
||||
return part || null;
|
||||
}).join('/');
|
||||
return '/' + Ox.filter(parts).join('/');
|
||||
}
|
||||
|
||||
function constructValue(str, key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue