object functions can handle hasOwnProperty override

I don't think making the user type check in partially applied applications makes sense

Sent from my HTC

----- Reply message -----
From: "Michael Hurley" <notifications@github.com>
To: "CrossEye/ramda" <ramda@noreply.github.com>
Cc: "Graeme Yeates" <megawac@gmail.com>
Subject: [ramda] object functions can handle hasOwnProperty override (#74)
Date: Thu, Jun 26, 2014 7:42 AM
In ramda.js:
>          // Returns a list containing the names of all the enumerable own
>          // properties of the supplied object.
>          var keys = R.keys = function (obj) {
> +            if (nativeKeys) return nativeKeys(obj);

hmmm. do we want to enforce type if the user gets it wrong? everywhere else we just let it throw, e.g.

foldl(100, 100, 100) // BOOM


&mdash;
Reply to this email directly or view it on GitHub.