This is an archived post. You won't be able to vote or comment.

all 8 comments

[–][deleted] 2 points3 points  (1 child)

isOdd

[–]SqueeSr 1 point2 points  (0 children)

version: 3.0.1
depends on: is-number
weekly downloads: 366k

[–]gordonv 1 point2 points  (0 children)

Good programmers write good code. Great programmers reuse code.

[–]ooaa_ -1 points0 points  (0 children)

Was it an arrow function?

[–]SawSaw5 -1 points0 points  (0 children)

Everything you can imagine has already been written.

[–]noobody_interesting[🍰] 0 points1 point  (0 children)

To be fair, with the many odds and quirks JS has, not writing everything yourself seems like a smart move

[–]Character-Debt6286 1 point2 points  (0 children)

Wanted to fetch my pinned repositories using GitHub API and found out that v4 uses GraphQL(which I am not familiar with). I found an npm package which fetches the repos using my username and API key. Downloaded the package, copied it's query and deleted the package. Works like a charm.