2 ms·
parseInt has an optional second argument. map provides two arguments. Why is this an example of psychopathic design?
by zdragnar 6y ago
parseInt has an optional second argument. map provides two arguments. Why is this an example of psychopathic design?
- bajcmartinez 6y agoit's just something unexpected that can happen because of the way you can pass functions as callbacks. I liked this example because the result looks really weird, and it can really happen to anyone, it's a mistake you can easily make and can go unnoticed.