mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-28 00:50:05 +08:00
52 lines
580 B
JavaScript
52 lines
580 B
JavaScript
|
const arrow_func = (
|
||
|
a,
|
||
|
b,
|
||
|
c
|
||
|
) => {
|
||
|
log(a, b, c)
|
||
|
}
|
||
|
|
||
|
const arrow_func_without_brace = (a, b, c) =>
|
||
|
log(
|
||
|
a,
|
||
|
b,
|
||
|
c
|
||
|
)
|
||
|
|
||
|
function func_def(
|
||
|
a,
|
||
|
b,
|
||
|
{ c = '' }
|
||
|
) {
|
||
|
log(a, b, c)
|
||
|
}
|
||
|
|
||
|
func_call(
|
||
|
a,
|
||
|
(b) => b
|
||
|
)
|
||
|
|
||
|
chained_func_call()
|
||
|
.map()
|
||
|
.filter()
|
||
|
|
||
|
func_call(
|
||
|
chained_func_call()
|
||
|
.map()
|
||
|
.filter()
|
||
|
)
|
||
|
|
||
|
function prepare_list_fetcher(filter) {
|
||
|
return Object.assign(
|
||
|
async () =>
|
||
|
(
|
||
|
await http.get('/list', {
|
||
|
params: {
|
||
|
filter: filter,
|
||
|
},
|
||
|
})
|
||
|
).data,
|
||
|
{ key: ['/list', filter] }
|
||
|
)
|
||
|
}
|