js & regex & var & highlight let key = `ali`.toLocaleUpperCase(); let name = "阿里云计算有限公司"; const getHighlightOthers = (name = ``, type = `prefix`) => { let result = ``; let prefix = 0; let suffix = 0; if (name && name.lengt…
As a beginner of Crocks.js, it was a problem for we to figure out when to use .map() and when to use .chain(). Of course, using the docs help: map: State s a ~> (a -> b) -> State s b chain: State s a ~> (a -> State s b) -> State s b The…