Jeff on Nostr: I can _almost_ understand the need for the `is-odd` npm package, but `is-even` really ...
I can _almost_ understand the need for the `is-odd` npm package, but `is-even` really doesn't make sense to me:
```
var isOdd = require('is-odd');
module.exports = function isEven(i) {
return !isOdd(i);
};
```
I can't imagine typing `!isOdd(a)` and thinking, "actually, I don't want to type an exclamation mark, I wonder if I can import yet another package …
Published at
2024-01-10 09:29:32Event JSON
{
"id": "90f87dc7b0071d5faa6b5ee1d1f25d17bca55fd5c03606d9e35ca3d0fbb8c063",
"pubkey": "b7dfbebf760efb2c756b3cae22baafdbbdf55abb782f85e93b4db804d5cba7e3",
"created_at": 1704878972,
"kind": 1,
"tags": [
[
"proxy",
"https://social.rights.ninja/users/jeffalyanak/statuses/111730948309593639",
"activitypub"
]
],
"content": "I can _almost_ understand the need for the `is-odd` npm package, but `is-even` really doesn't make sense to me:\n\n```\nvar isOdd = require('is-odd');\n\nmodule.exports = function isEven(i) {\n return !isOdd(i);\n};\n```\n\nI can't imagine typing `!isOdd(a)` and thinking, \"actually, I don't want to type an exclamation mark, I wonder if I can import yet another package …",
"sig": "344a6bde60fe8b2ea0c36387bc28d2fd29593599d5d3262ab6bfba6d2989865e08d07412a67bb53cd7c63cdbbecad90c0fcda9f2d0326ea79448b22d02ef8484"
}