Stephen Curry scored 28 points, and Draymond Green had 22 points, nine rebounds and seven assists as the Golden State Warriors beat the Brooklyn Nets to improve to 22-0 for the season.