意大利东北部,在拉文纳以南的一条浅河 [a]同步功能编程 const { pipe , map , filter } = rubico const isOdd = number => number % 2 == 1 const asyncSquare = async number => number ** 2 const squaredOdds = pipe ( [ filter ( isOdd ) , map ( asyncSquare ) , ] ) squaredOdds ( [ 1 , 2 , 3 , 4 , 5 ] ) . then ( console . log ) // [1, 9, 25] 安装 ( ) 与npm npm i rubico 在Node.js中需要rubico const rubico = require ( 'rubico' ) const p