mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-27 12:00:04 +08:00
52 lines
580 B
JavaScript
Vendored
52 lines
580 B
JavaScript
Vendored
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] }
|
|
)
|
|
}
|