UNPKG

roadhogx

Version:

Cli tool for serve and build react app, based on roadhog, support JSON pattern config, support more features

9 lines (7 loc) 143 B
export default function (stats, fn) { if (stats && Array.isArray(stats)) { return stats.map(fn); } else { return fn(stats); } }