jussi-kalliokoski / trine

A utility library for modern JavaScript.
ISC License
1.42k stars 35 forks source link

Use `switch` in `to()` rather than `if-else`. #43

Closed kasperisager closed 9 years ago

kasperisager commented 9 years ago

This commit refactors to() replacing the if-else statements with a switch instead for the purpose of readability.

jussi-kalliokoski commented 9 years ago

Good idea! Looks much better! :+1: :tada: