use Array.isArray in spread
Automatically rewritten for npm.