in the study of the vuex project, I found someone else"s code from github. Can the "callback (_ products)" here be used in this way? I don"t understand this way of writing
./**
*
*/
var _products = [
{"id": 1, "title": "iPad 4 Mini", "price": 500.01, "inventory": 2},
{"id": 2, "title": "H&M T-Shirt White", "price": 10.99, "inventory": 10},
{"id": 3, "title": "Charli XCX - Sucker CD", "price": 19.99, "inventory": 5}
]
export default {
//
getProducts:function(callback){
//callback
setTimeout(callback(_products), 300)
},
}