assignment syntax would that mean any code?
While both basic assignment syntax and … can be used to the same effect, typically it's recommended that you use the assignment syntax whenever possible, as it's easier to read.
https://lhorie.github.io/mithril/mithril.request.html
I added
When the assignment syntax possible?
user.json
[{"name": "John"}, {"name": "Mary"}]
index.html
var users = m.request({method: "GET", user.json});
console.log( users() ); // undefined
I added
「typically it's recommended that you use the assignment syntax whenever possible」 means Code below?
user.json
[{"name": "John"}, {"name": "Mary"}]
index.html
var users = m.request({method: "GET", url: "user.json"}, initialValue: []});
console.log( users() );
or
var users = m.request({method: "GET", url: "user.json"}, initialValue: [{"name": "John"}, {"name": "Mary"}]});
console.log( users() );